11 @times = (-2**33, -2**31-1, 0, 2**31-1, 2**33, time);
12 @methods = qw(sec min hour mday mon year wday yday isdst);
14 plan tests => (@times * @methods) + 1;
16 use_ok Time::localtime;
19 # Since Perl's localtime() still uses the system localtime, don't try
20 # to do negative times. The system might not support it.
21 for my $time (@times) {
22 my $localtime = localtime $time; # This is the OO localtime.
23 my @localtime = CORE::localtime $time; # This is the localtime function
25 for my $method (@methods) {
26 is $localtime->$method, shift @localtime, "localtime($time)->$method";