10 eval { my $n = gmtime 0 };
11 $hasgm = 1 unless $@ && $@ =~ /unimplemented/;
12 unless ($hasgm) { print "1..0 # Skip: no gmtime\n"; exit 0 }
16 our @gmtime = gmtime 0; # This is the function gmtime.
17 unless (@gmtime) { print "1..0 # Skip: gmtime failed\n"; exit 0 }
26 my $gmtime = gmtime 0 ; # This is the OO gmtime.
28 print "not " unless $gmtime->sec == $gmtime[0];
31 print "not " unless $gmtime->min == $gmtime[1];
34 print "not " unless $gmtime->hour == $gmtime[2];
37 print "not " unless $gmtime->mday == $gmtime[3];
40 print "not " unless $gmtime->mon == $gmtime[4];
43 print "not " unless $gmtime->year == $gmtime[5];
46 print "not " unless $gmtime->wday == $gmtime[6];
49 print "not " unless $gmtime->yday == $gmtime[7];
52 print "not " unless $gmtime->isdst == $gmtime[8];