mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
20 lines
429 B
PHP
20 lines
429 B
PHP
--TEST--
|
|
IntlCalendar::toDateTime(): basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
//ini_set("intl.default_locale", "nl");
|
|
ini_set('date.timezone', 'Europe/Lisbon');
|
|
|
|
$cal = new IntlGregorianCalendar(2012,04,17,17,35,36);
|
|
|
|
$dt = $cal->toDateTime();
|
|
|
|
var_dump($dt->format("c"), $dt->getTimeZone()->getName());
|
|
?>
|
|
--EXPECT--
|
|
string(25) "2012-05-17T17:35:36+01:00"
|
|
string(13) "Europe/Lisbon"
|