A better fix for the \x{12345678} trouble from NI-S.
[p5sagit/p5-mst-13.2.git] / t / lib / time-piece.t
CommitLineData
302d38aa 1BEGIN {
2 chdir 't' if -d 't';
3 @INC = '../lib';
4}
5
6print "1..4\n";
7
8use Time::Piece;
9print "ok 1\n";
10
11my $t = gmtime(315532800); # 00:00:00 1/1/1980
12
13print "not " unless $t->year == 1980;
14print "ok 2\n";
15
16print "not " unless $t->hour == 0;
17print "ok 3\n";
18
19print "not " unless $t->mon == 1;
20print "ok 4\n";