1 use Test::More tests => 7;
3 BEGIN { use_ok('Time::Piece'); }
5 my $t = gmtime(315532800); # 00:00:00 1/1/1980
7 isa_ok($t, 'Time::Piece', 'specific gmtime');
9 cmp_ok($t->year, '==', 1980, 'correct year');
11 cmp_ok($t->hour, '==', 0, 'correct hour');
13 cmp_ok($t->mon, '==', 1, 'correct mon');
16 isa_ok($g, 'Time::Piece', 'current gmtime');
19 isa_ok($l, 'Time::Piece', 'current localtime');