2 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] )
3 * Description: Returns new DateTime object
4 * Source code: ext/date/php_date.c
7 //Set the default time zone
8 date_default_timezone_set("GMT");
10 echo "*** Testing date_create() : error conditions ***\n";
12 echo "\n-- Testing new DateTime() with more than expected no. of arguments --\n";
14 $timezone = timezone_open("GMT");
16 var_dump( new DateTime($time, $timezone, $extra_arg) );