[comments] => %s
)
Array
-(
- [country_code] => %s
- [latitude] => %f
- [longitude] => %f
- [comments] =>
-)
-Array
(
[country_code] => %s
[latitude] => %f
int(%d)
-- Format a sample entry --
-array(17) {
+array(12) {
[0]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(18) "America/Porto_Acre"
- }
- [1]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(18) "Australia/Adelaide"
}
- [2]=>
+ [1]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(18) "Australia/Adelaide"
}
- [3]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(16) "America/Eirunepe"
- }
- [4]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(18) "America/Rio_Branco"
- }
- [5]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(11) "Brazil/Acre"
- }
- [6]=>
+ [2]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(21) "Australia/Broken_Hill"
}
- [7]=>
+ [3]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(16) "Australia/Darwin"
}
- [8]=>
+ [4]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/North"
}
- [9]=>
+ [5]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/South"
}
- [10]=>
+ [6]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(20) "Australia/Yancowinna"
}
- [11]=>
- array(3) {
- ["dst"]=>
- bool(false)
- ["offset"]=>
- int(34200)
- ["timezone_id"]=>
- string(13) "Asia/Jayapura"
- }
- [12]=>
+ [7]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(21) "Australia/Broken_Hill"
}
- [13]=>
+ [8]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(16) "Australia/Darwin"
}
- [14]=>
+ [9]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/North"
}
- [15]=>
+ [10]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/South"
}
- [16]=>
+ [11]=>
array(3) {
["dst"]=>
bool(false)
--FILE--
<?php
-print strtotime('2008-05-23 00:00:00 SGT');
+print strtotime('2008-05-23 00:00:00 +08');
print "\n";
print strtotime('2008-05-23 00:00:00');
--EXPECTF--
*** Testing timezone_abbreviations_list() : basic functionality ***
string(5) "array"
-int(%d)
+int(142)
-- Format a sample entry --
-array(17) {
+array(12) {
[0]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(18) "America/Porto_Acre"
- }
- [1]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(18) "Australia/Adelaide"
}
- [2]=>
+ [1]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(18) "Australia/Adelaide"
}
- [3]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(16) "America/Eirunepe"
- }
- [4]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(18) "America/Rio_Branco"
- }
- [5]=>
- array(3) {
- ["dst"]=>
- bool(true)
- ["offset"]=>
- int(-14400)
- ["timezone_id"]=>
- string(11) "Brazil/Acre"
- }
- [6]=>
+ [2]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(21) "Australia/Broken_Hill"
}
- [7]=>
+ [3]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(16) "Australia/Darwin"
}
- [8]=>
+ [4]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/North"
}
- [9]=>
+ [5]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/South"
}
- [10]=>
+ [6]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(20) "Australia/Yancowinna"
}
- [11]=>
- array(3) {
- ["dst"]=>
- bool(false)
- ["offset"]=>
- int(34200)
- ["timezone_id"]=>
- string(13) "Asia/Jayapura"
- }
- [12]=>
+ [7]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(21) "Australia/Broken_Hill"
}
- [13]=>
+ [8]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(16) "Australia/Darwin"
}
- [14]=>
+ [9]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/North"
}
- [15]=>
+ [10]=>
array(3) {
["dst"]=>
bool(false)
["timezone_id"]=>
string(15) "Australia/South"
}
- [16]=>
+ [11]=>
array(3) {
["dst"]=>
bool(false)
echo "-- Lookup with name and offset--\n";
var_dump( timezone_name_from_abbr("ADT", -10800) );
var_dump( timezone_name_from_abbr("ADT", 14400) );
-var_dump( timezone_name_from_abbr("AMST", -10800) );
echo "-- Tests without valid name - uses gmtOffset and isdst to find match --\n";
var_dump( timezone_name_from_abbr("", 3600, 1) );
string(16) "America/New_York"
-- Lookup with name and offset--
string(15) "America/Halifax"
-string(12) "Asia/Baghdad"
-string(17) "America/Boa_Vista"
+string(15) "America/Halifax"
-- Tests without valid name - uses gmtOffset and isdst to find match --
string(13) "Europe/London"
string(17) "America/Sao_Paulo"