mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
27 lines
504 B
PHP
27 lines
504 B
PHP
--TEST--
|
|
IntlTimeZone::createTimeZone(): basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$tz = IntlTimeZone::createTimeZone('GMT+01:00');
|
|
print_r($tz);
|
|
$tz = intltz_create_time_zone('GMT+01:00');
|
|
print_r($tz);
|
|
?>
|
|
--EXPECT--
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT+01:00
|
|
[rawOffset] => 3600000
|
|
[currentOffset] => 3600000
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT+01:00
|
|
[rawOffset] => 3600000
|
|
[currentOffset] => 3600000
|
|
)
|