# New Ticket Created by  Alex Jakimenko 
# Please include the string:  [perl #127160]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127160 >


Code:
say DateTime.now.earlier(years => 15)

Result:
2031-01-05T01:57:22.872850+01:00

It is a regression, it was working just fine earlier.

It seems like there are no tests for this particular case (.earlier with
days, months, etc. seems to be fine).

Reply via email to