2 Test localtime() function : error conditions
5 if (!function_exists('strptime')) {
6 echo "SKIP strptime function not available in build";
11 /* Prototype : array strptime ( string $date , string $format )
12 * Description: Parse a time/date generated with strftime()
13 * Source code: ext/standard/datetime.c
17 //Set the default time zone
18 date_default_timezone_set("Europe/London");
20 echo "*** Testing strptime() : error conditions ***\n";
22 echo "\n-- Testing strptime() function on failure --\n";
23 $format = '%b %d %Y %H:%M:%S';
24 var_dump( strptime('foo', $format) );
28 *** Testing strptime() : error conditions ***
30 -- Testing strptime() function on failure --