Lines Matching refs:gmdate
2 Test gmdate() function : usage variation - Passing Year format options to format argument.
5 /* Prototype : string gmdate(string format [, long timestamp])
11 echo "*** Testing gmdate() : usage variation ***\n";
18 echo "\n-- Testing gmdate() function with checking non leap year using Leap Year format --\n";
19 var_dump( gmdate('L', $timestamp_non_leap_year) );
21 echo "\n-- Testing gmdate() function with checking leap year using Leap Year format --\n";
22 var_dump( gmdate('L') );
23 var_dump( gmdate('L', $timestamp) );
25 echo "\n-- Testing gmdate() function with ISO-8601 year number format --\n";
26 var_dump( gmdate('o') );
27 var_dump( gmdate('o', $timestamp) );
29 echo "\n-- Testing gmdate() function with full numeric representation of year format --\n";
30 var_dump( gmdate('Y') );
31 var_dump( gmdate('Y', $timestamp) );
33 echo "\n-- Testing gmdate() function with 2 digit representation year format --\n";
34 var_dump( gmdate('y') );
35 var_dump( gmdate('y', $timestamp) );
40 *** Testing gmdate() : usage variation ***
42 -- Testing gmdate() function with checking non leap year using Leap Year format --
45 -- Testing gmdate() function with checking leap year using Leap Year format --
49 -- Testing gmdate() function with ISO-8601 year number format --
53 -- Testing gmdate() function with full numeric representation of year format --
57 -- Testing gmdate() function with 2 digit representation year format --