1#!/usr/bin/perl
2
3use warnings;
4use strict;
5use Test::Inter;
6$::ti = new Test::Inter $0;
7require "tests.pl";
8
9sub test {
10   return UnixDate(@_);
11}
12
13Date_Init("ForceDate=1997-03-08-12:30:00,America/New_York");
14
15my $tests="
16
17'Wed Jan 3, 1996  at 8:11:12'
18'%y %Y %m %f %b %h %B %U %W %j %d %e %v %a %A %w %E'
19=>
20   '96 1996 01  1 Jan Jan January 01 01 003 03  3 W Wed Wednesday 3 3rd'
21
22'Wed Jan 3, 1996  at 8:11:12'
23'%H %k %i %I %p %M %S %s %o %N %z %Z'
24=>
25   '08  8  8 08 AM 11 12 820674672 820656672 -05:00:00 -0500 EST'
26
27";
28
29$::ti->tests(func  => \&test,
30             tests => $tests);
31$::ti->done_testing();
32
33#Local Variables:
34#mode: cperl
35#indent-tabs-mode: nil
36#cperl-indent-level: 3
37#cperl-continued-statement-offset: 2
38#cperl-continued-brace-offset: 0
39#cperl-brace-offset: 0
40#cperl-brace-imaginary-offset: 0
41#cperl-label-offset: 0
42#End:
43