1--TEST--
2Test gmstrftime() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : string gmstrftime(string format [, int timestamp])
6 * Description: Format a GMT/UCT time/date according to locale settings
7 * Source code: ext/date/php_date.c
8 * Alias to functions:
9 */
10
11echo "*** Testing gmstrftime() : basic functionality ***\n";
12
13// Initialise all required variables
14$format = '%b %d %Y %H:%M:%S';
15$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
16
17// Calling gmstrftime() with all possible arguments
18var_dump( gmstrftime($format, $timestamp) );
19
20// Calling gmstrftime() with mandatory arguments
21var_dump( gmstrftime($format) );
22
23?>
24===DONE===
25--EXPECTF--
26*** Testing gmstrftime() : basic functionality ***
27string(20) "Aug 08 2008 08:08:08"
28string(%d) "%s %d %d %d:%d:%d"
29===DONE===
30