2 /* Prototype : array localtime([int timestamp [, bool associative_array]])
3 * Description: Returns the results of the C system call localtime as an associative array
4 * if the associative_array argument is set to 1 other wise it is a regular array
5 * Source code: ext/date/php_date.c
9 //Set the default time zone
10 date_default_timezone_set("Europe/London");
12 echo "*** Testing localtime() : error conditions ***\n";
14 echo "\n-- Testing localtime() function with more than expected no. of arguments --\n";
15 $timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
18 var_dump( localtime($timestamp, $assoc, $extra_arg) );