2 date_default_timezone_set('UTC');
3 class _d
extends DateTime
{
4 function __construct() {
7 class _t
extends DateTimeZone
{
8 function __construct() {
13 var_dump($d->format("Y-m-d H:i:s"));
16 var_dump($d->format("Y-m-d H:i:s"));
19 new DateTime("1am todax");
20 } catch (Exception
$e) {
21 echo $e->getMessage(),"\n";
24 $t = new DateTimeZone("UTC");
25 var_dump($t->getName());
28 var_dump($t->getName());
31 new DateTimeZone("GottaFindThisOne");
32 } catch (Exception
$e) {
33 echo $e->getMessage(),"\n";