mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
- update test
This commit is contained in:
parent
efa04c8a22
commit
a5ddba6f80
@ -17,6 +17,11 @@ var_dump($d->format("Y-m-d H:i:s"));
|
||||
$d = new _d;
|
||||
var_dump($d->format("Y-m-d H:i:s"));
|
||||
|
||||
try {
|
||||
new DateTime("1am todax");
|
||||
} catch (Exception $e) {
|
||||
echo $e->getMessage(),"\n";
|
||||
}
|
||||
|
||||
$t = new DateTimeZone("UTC");
|
||||
var_dump($t->getName());
|
||||
@ -37,6 +42,7 @@ string(19) "%d-%d-%d %d:%d:%d"
|
||||
|
||||
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %soo_001.php on line %d
|
||||
bool(false)
|
||||
DateTime::__construct(): Failed to parse time string (1am todax) at position 4 (t): The timezone could not be found in the database
|
||||
string(3) "UTC"
|
||||
|
||||
Warning: DateTimeZone::getName(): The DateTimeZone object has not been correctly initialized by its constructor in %soo_001.php on line %d
|
||||
|
Loading…
Reference in New Issue
Block a user