mirror of
https://github.com/php/php-src.git
synced 2024-10-06 17:26:11 +00:00
12 lines
282 B
Plaintext
12 lines
282 B
Plaintext
|
--TEST--
|
||
|
date_create() function [3]
|
||
|
--FILE--
|
||
|
<?php
|
||
|
date_default_timezone_set("GMT");
|
||
|
echo date_format(date_create("Dec31 2005 +0100"), DATE_ISO8601), "\n";
|
||
|
echo date(DATE_ISO8601, strtotime("Dec31 2005 +0100")), "\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
2005-12-31T00:00:00+0100
|
||
|
2005-12-31T00:00:00+0100
|