| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use warningsscip-perl cpan Date-Manip 6.99 warnings/; |
| 4 | use strictscip-perl cpan Date-Manip 6.99 strict/; |
| 5 | use Test::Interscip-perl cpan Date-Manip 6.99 Test/Inter/; |
| 6 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`. = new Test::Inter $0scip-perl cpan Date-Manip 6.99 main/$0.; |
| 7 | requirescip-perl cpan Date-Manip 6.99 main/require(). "tests.pl"; |
| 8 | |
| 9 | sub testscip-perl cpan Date-Manip 6.99 main/test(). { |
| 10 | return UnixDatescip-perl cpan Date-Manip 6.99 main/UnixDate().(@_scip-perl cpan Date-Manip 6.99 main/`@_`.); |
| 11 | } |
| 12 | |
| 13 | Date_Initscip-perl cpan Date-Manip 6.99 main/Date_Init().("ForceDate=1997-03-08-12:30:00,America/New_York"); |
| 14 | |
| 15 | my $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 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`.->testsscip-perl cpan Date-Manip 6.99 main/tests().(func => \&testscip-perl cpan Date-Manip 6.99 main/test()., |
| 30 | tests => $tests); |
| 31 | $::tiscip-perl cpan Date-Manip 6.99 main/`$::ti`.->done_testingscip-perl cpan Date-Manip 6.99 main/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: |