Subject: | Date::Parse inconsistent year handling |
This program:
#!/usr/bin/env perl
use strict;
use warnings;
use Date::Parse;
my @t = strptime('1 Jan 1901 12:00');
print $t[5], "\n";
@t = strptime('1 Jan 1899 12:00');
print $t[5], "\n";
Prints:
Nigels-MacBook-Pro:~ njh$ ./foo
1
1899
Nigels-MacBook-Pro:~ njh$
which is inconsistent to me. Maybe there is something deep in the documentation about this inconsistency, but I couldn't find it.