10 BEGIN { plan tests => 37; }
12 BEGIN { use_ok Time::gmtime; }
14 for my $time (0, 2**31-1, 2**33, time) {
15 my $gmtime = gmtime $time; # This is the OO gmtime.
16 my @gmtime = CORE::gmtime $time; # This is the gmtime function
18 for my $method (qw(sec min hour mday mon year wday yday isdst)) {
19 is $gmtime->$method, shift @gmtime, "gmtime($time)->$method";