import random crap zend files
[hiphop-php.git] / hphp / test / zend / bad / ext-date / bug33415-2.php
blob50a813c5617f9e05029832d1606a475ee1b14c57
1 <?php
2 date_default_timezone_set('Africa/Bujumbura');
4 print "TZ=Africa/Bujumbura - *Note*: Unexpected, as does not appear to
5 have a DST or timezone transition.\n";
6 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
7 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
8 $strtotime_tstamp = strtotime("next Wednesday", $tStamp);
9 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
10 print "wanted=Wednesday 00:00:00\n\n";
12 print "TZ=Asia/Thimbu - Is it OK for this to be 0:30 AM? yes\n";
13 date_default_timezone_set('Asia/Thimbu');
14 $tStamp = mktime (17, 17, 17, 1, 6476, 1970);
15 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
16 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
17 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
18 print "wanted=Thursday 00:30:00\n\n";
20 print "TZ=Indian/Cocos - Is it OK for this to be 6:30 AM? Note: does not
21 appear to have a DST or timezone transition.\n";
22 date_default_timezone_set('Indian/Cocos');
23 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
24 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
25 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
26 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
27 print "wanted=Thursday 00:00:00\n\n";
29 print "TZ=Africa/Lubumbashi - Is it OK for this to be 2 AM? Note: does
30 not appear to have a DST or timezone transition.\n";
31 date_default_timezone_set('Africa/Lubumbashi');
32 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
33 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
34 $strtotime_tstamp = strtotime("next Saturday", $tStamp);
35 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
36 print "wanted=Saturday 00:00:00\n\n";
38 print "TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes\n";
39 date_default_timezone_set('Asia/Kashgar');
40 $tStamp = mktime (17, 17, 17, 1, 3767, 1970);
41 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
42 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
43 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
44 print "wanted=Thursday 03:00:00\n\n";
46 print "TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does
47 not appear to have a DST or timezone transition.\n";
48 date_default_timezone_set('Indian/Christmas');
49 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
50 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
51 $strtotime_tstamp = strtotime("next Sunday", $tStamp);
52 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
53 print "wanted=Sunday 00:00:00\n\n";
55 print "TZ=America/Santo_Domingo - Is it OK for this to be 0:30 AM? yes\n";
56 date_default_timezone_set('America/Santo_Domingo');
57 $tStamp = mktime (17, 17, 17, 1, 291, 1970);
58 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
59 $strtotime_tstamp = strtotime("next Sunday", $tStamp);
60 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
61 print "wanted=Sunday 00:30:00\n\n";
63 print "TZ=Pacific/Truk - Is it OK for this to be 10 AM? Note: does not
64 appear to have a DST or timezone transition.\n";
65 date_default_timezone_set('Pacific/Truk');
66 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
67 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
68 $strtotime_tstamp = strtotime("next Tuesday", $tStamp);
69 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
70 print "wanted=Tuesday 00:00:00\n\n";
72 print "TZ=Pacific/Ponape - Is it OK for this to be 11 AM? Note: does
73 not appear to have a DST or timezone transition.\n";
74 date_default_timezone_set('Pacific/Ponape');
75 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
76 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
77 $strtotime_tstamp = strtotime("next Monday", $tStamp);
78 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
79 print "wanted=Monday 00:00:00\n\n";
81 print "TZ=America/Scoresbysund - Is it OK for this to be 2 AM? yes\n";
82 date_default_timezone_set('America/Scoresbysund');
83 $tStamp = mktime (17, 17, 17, 1, 4099, 1970);
84 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
85 $strtotime_tstamp = strtotime("next Sunday", $tStamp);
86 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
87 print "wanted=Sunday 02:00:00\n\n";
89 print "TZ=America/Guyana - Is it OK for this to be 0:45 AM? yes\n";
90 date_default_timezone_set('America/Guyana');
91 $tStamp = mktime (17, 17, 17, 1, 2031, 1970);
92 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
93 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
94 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
95 print "wanted=Thursday 00:45:00\n\n";
97 print "TZ=Asia/Tehran - Is it OK for this to be 0:30 AM? yes\n";
98 date_default_timezone_set('Asia/Tehran');
99 $tStamp = mktime (17, 17, 17, 1, 2855, 1970);
100 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
101 $strtotime_tstamp = strtotime("next Tuesday", $tStamp);
102 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
103 print "wanted=Tuesday 00:30:00\n\n";
105 print "TZ=Pacific/Tarawa - Is it OK for this to be Midday? Note: does
106 not appear to have a DST or timezone transition.\n";
107 date_default_timezone_set('Pacific/Tarawa');
108 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
109 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
110 $strtotime_tstamp = strtotime("next Monday", $tStamp);
111 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
112 print "wanted=Monday 00:00:00\n\n";
114 print "TZ=Africa/Monrovia - Is it OK for this to be 00:44:30 AM? yes\n";
115 date_default_timezone_set('Africa/Monrovia');
116 $tStamp = mktime (17, 17, 17, 1, 845, 1970);
117 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
118 $strtotime_tstamp = strtotime("next Monday", $tStamp);
119 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
120 print "wanted=Monday 00:44:30\n\n";
122 print "TZ=Asia/Katmandu - Is it OK for this to 0:15 AM?. yes\n";
123 date_default_timezone_set('Asia/Katmandu');
124 $tStamp = mktime (17, 17, 17, 1, 5838, 1970);
125 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
126 $strtotime_tstamp = strtotime("next Wednesday", $tStamp);
127 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
128 print "wanted=Wednesday 00:15:00\n\n";
130 print "TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes\n";
131 date_default_timezone_set('Pacific/Nauru');
132 $tStamp = mktime (17, 17, 17, 1, 3401, 1970);
133 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
134 $strtotime_tstamp = strtotime("next Tuesday", $tStamp);
135 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
136 print "wanted=Tuesday 00:30:00\n\n";
138 print "TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes\n";
139 date_default_timezone_set('Pacific/Niue');
140 $tStamp = mktime (17, 17, 17, 1, 3189, 1970);
141 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
142 $strtotime_tstamp = strtotime("next Sunday", $tStamp);
143 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
144 print "wanted=Sunday 00:30:00\n\n";
146 print "TZ=Pacific/Port_Moresby - Is it OK for this to be 10 AM? No DST
147 or timezone transition.\n";
148 date_default_timezone_set('Pacific/Port_Moresby');
149 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
150 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
151 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
152 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
153 print "wanted=Thursday 00:00:00\n\n";
155 print "TZ=America/Miquelon - Is it OK for this to be 1 AM ? yes\n";
156 date_default_timezone_set('America/Miquelon');
157 $tStamp = mktime (17, 17, 17, 1, 3767, 1970);
158 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
159 $strtotime_tstamp = strtotime("next Thursday", $tStamp);
160 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
161 print "wanted=Thursday 01:00:00\n\n";
163 print "TZ=Pacific/Palau - Is it OK for this to be 9 AM? No DST or
164 timezone transition.\n";
165 date_default_timezone_set('Pacific/Palau');
166 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
167 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
168 $strtotime_tstamp = strtotime("next Saturday", $tStamp);
169 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
170 print "wanted=Saturday 00:00:00\n\n";
172 print "TZ=Pacific/Funafuti - Is it OK for this to be midday? Note: does
173 not appear to have a DST or timezone transition.\n";
174 date_default_timezone_set('Pacific/Funafuti');
175 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
176 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
177 $strtotime_tstamp = strtotime("next Wednesday", $tStamp);
178 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
179 print "wanted=Wednesday 00:00:00\n\n";
181 print "TZ=Pacific/Wake - Is it OK for this to be midday? Note: does not
182 appear to have a DST or timezone transition.\n";
183 date_default_timezone_set('Pacific/Wake');
184 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
185 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
186 $strtotime_tstamp = strtotime("next Tuesday", $tStamp);
187 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
188 print "wanted=Tuesday 00:00:00\n\n";
190 print "TZ=Pacific/Wallis - Is it OK for this to be midday? Note: does
191 not appear to have a DST or timezone transition.\n";
192 date_default_timezone_set('Pacific/Wallis');
193 $tStamp = mktime (17, 17, 17, 1, 1, 1970);
194 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
195 $strtotime_tstamp = strtotime("next Tuesday", $tStamp);
196 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
197 print "wanted=Tuesday 00:00:00\n\n";
199 print "TZ=America/Paramaribo - Is it OK for this to be 0:30 AM? yes\n";
200 date_default_timezone_set('America/Paramaribo');
201 $tStamp = mktime (17, 17, 17, 1, 5381, 1970);
202 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
203 $strtotime_tstamp = strtotime("next Monday", $tStamp);
204 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
205 print "wanted=Monday 00:30:00\n\n";