Debian Codegraph @

t/orig.convtz.t

raw
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use Test::Inter;
6 $::ti = new Test::Inter $0;
7 require "tests.pl";
8
9 sub test {
10 return Date_ConvTZ(@_);
11 }
12
13 Date_Init("ForceDate=now,America/New_York");
14
15 my $tests="
16
17 2001012812:05:00 +0000 BST => 2001012812:05:00
18
19 2001082812:05:00 +0000 BST => 2001082813:05:00
20
21 2001012812:05:00 GMT +0000 => 2001012812:05:00
22
23 2001082812:05:00 GMT +0000 => 2001082812:05:00
24
25 2001012812:05:00 GMT BST => 2001012812:05:00
26
27 2001082812:05:00 GMT BST => 2001082813:05:00
28
29 2001012812:05:00 GMT Europe/London => 2001012812:05:00
30
31 2001082812:05:00 GMT Europe/London => 2001082813:05:00
32
33 2007030113:34:34 +0000 +0100 => 2007030114:34:34
34
35 2007030113:34:34 +0000 +01:00 => 2007030114:34:34
36
37 2007030113:34:34 +0000 +01 => 2007030114:34:34
38
39 2007030113:34:34 +0000 -0100 => 2007030112:34:34
40
41 2007030113:34:34 +0000 -02:00 => 2007030111:34:34
42
43 2007030113:34:34 +0000 -03 => 2007030110:34:34
44
45 ";
46
47 $::ti->tests(func => \&test,
48 tests => $tests);
49 $::ti->done_testing();
50
51 #Local Variables:
52 #mode: cperl
53 #indent-tabs-mode: nil
54 #cperl-indent-level: 3
55 #cperl-continued-statement-offset: 2
56 #cperl-continued-brace-offset: 0
57 #cperl-brace-offset: 0
58 #cperl-brace-imaginary-offset: 0
59 #cperl-label-offset: 0
60 #End: