Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 26872
Status: resolved
Priority: 0/
Queue: DateManip

Owner: Nobody in particular
Requestors: agianni [...]

Bug Information
Severity: Normal
Broken in: 5.44
Fixed in: (no value)

Subject: Edge case: 12/26/9999 - 12/31/9999 return invalid year on call to UnixDate
Download (untitled) / with headers
text/plain 734b
I know this is a total edge case, but I'm working on a system that tracks data with no end date by using the date 12/31/9999. I'm taking input as MM/DD/YYYY and using ParseDate and UnixDate to reformat for storage like this: UnixDate(ParseDate('12/31/9999'), '%Q'); This generates an error: ERROR: Invalid year (10000) at /Library/Perl/5.8.6/Date/ line 5507 Date::Manip::Date_FixYear(10000) called at /Library/Perl/5.8.6/Date/ line 3359 Date::Manip::Date_WeekOfYear(1, 7, 10000, 1) called at /Library/Perl/5.8.6/Date/ line 1825 Date::Manip::UnixDate('9999123100:00:00', '%Q') called at line 8 I'm not sure I actually expect this to be fixed, but it seems it ought to work.
Download (untitled) / with headers
text/plain 121b
The documentation makes mention of this problem (and explains where it comes from) and states that it will NOT be fixed.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to