Home
last modified time | relevance | path

Searched refs:strftime (Results 1 – 25 of 45) sorted by relevance

12

/PHP-7.4/ext/date/tests/
H A Dstrftime_variation23.phpt7 /* Prototype : string strftime(string format [, int timestamp])
13 echo "*** Testing strftime() : usage variation ***\n";
20 echo "\n-- Testing strftime() function with float 12.3456789000e10 to timestamp --\n";
22 var_dump( strftime($format, $timestamp) );
24 echo "\n-- Testing strftime() function with float -12.3456789000e10 to timestamp --\n";
26 var_dump( strftime($format, $timestamp) );
31 *** Testing strftime() : usage variation ***
33 -- Testing strftime() function with float 12.3456789000e10 to timestamp --
35 Warning: strftime() expects parameter 2 to be int, float given in %s on line %d
38 -- Testing strftime() function with float -12.3456789000e10 to timestamp --
[all …]
H A Dstrftime_basic.phpt2 Test strftime() function : basic functionality
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : basic functionality ***\n";
18 // Calling strftime() with all possible arguments
19 var_dump( strftime($format, $timestamp) );
21 // Calling strftime() with mandatory arguments
22 var_dump( strftime($format) );
27 *** Testing strftime() : basic functionality ***
H A Dstrftime_variation8.phpt2 Test strftime() function : usage variation - Passing literal related strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
19 echo "\n-- Testing strftime() function with a literal % character to format --\n";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
26 *** Testing strftime() : usage variation ***
28 -- Testing strftime() function with a literal % character to format --
H A Dstrftime_variation11.phpt2 Test strftime() function : usage variation - Checking month related formats which was not supported…
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
18 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
26 *** Testing strftime() : usage variation ***
28 -- Testing strftime() function with Abbreviated month name format %h --
H A Dstrftime_variation17.phpt2 Test strftime() function : usage variation - Checking day related formats which was not supported o…
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
18 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n";
20 var_dump( strftime($format) );
21 var_dump( strftime($format, $timestamp) );
25 *** Testing strftime() : usage variation ***
27 -- Testing strftime() function with Day of the month as decimal single digit format --
H A Dbug33532.phpt2 Bug #33532 (Different output for strftime() and date())
8 if(PHP_OS == 'Darwin' || defined('PHP_WINDOWS_VERSION_MAJOR')) die("skip strftime uses system TZ on…
16 print "Should strftime==datestr? Strftime seems to assume GMT tStamp.\n";
20 print "strftime " . strftime("%r %B%e %Y %Z %z", $tStamp) . "\n";
29 print "strftime " . strftime("%r %B%e %Y %Z %z", $tStamp) . "\n";
35 Should strftime==datestr? Strftime seems to assume GMT tStamp.
37 strftime 10:00:00 AM July 1 2005 UTC +0000
42 strftime 10:00:00 AM July 1 2005 AEST +1000
H A Dstrftime_variation12.phpt2 Test strftime() function : usage variation - Checking month related formats which are supported oth…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
24 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n";
26 var_dump( strftime($format) );
27 var_dump( strftime($format, $timestamp) );
32 *** Testing strftime() : usage variation ***
34 -- Testing strftime() function with Abbreviated month name format %h --
H A Dstrftime_variation18.phpt2 Test strftime() function : usage variation - Checking day related formats which are supported other…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
24 echo "\n-- Testing strftime() function with Day of the month as decimal single digit format --\n";
26 var_dump( strftime($format) );
27 var_dump( strftime($format, $timestamp) );
31 *** Testing strftime() : usage variation ***
33 -- Testing strftime() function with Day of the month as decimal single digit format --
H A Dbug32555.phpt5 if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ');
12 print strftime('%c %Z',strtotime('now',$stamp)) ."\n";
13 print strftime('%c %Z',strtotime('tomorrow',$stamp)) ."\n";
14 print strftime('%c %Z',strtotime('+1 day',$stamp)) ."\n";
15 print strftime('%c %Z',strtotime('+2 day',$stamp)) ."\n";
H A Dstrftime_variation19.phpt2 Test strftime() function : usage variation - Checking newline and tab formats which was not support…
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
28 var_dump( strftime($value) );
29 var_dump( strftime($value, $timestamp) );
35 *** Testing strftime() : usage variation ***
H A Dstrftime_variation9.phpt2 Test strftime() function : usage variation - Checking week related formats which was not supported …
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
28 var_dump( strftime($value) );
29 var_dump( strftime($value, $timestamp) );
35 *** Testing strftime() : usage variation ***
H A D009.phpt2 strftime() and gmstrftime() tests
13 var_dump(strftime());
15 var_dump(strftime(""));
16 var_dump(strftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V…
17 var_dump(strftime("%%q %%a", $t));
18 var_dump(strftime("%q", $t));
19 var_dump(strftime("blah", $t));
32 Warning: strftime() expects at least 1 parameter, 0 given in %s on line %d
H A Dstrftime_variation20.phpt2 Test strftime() function : usage variation - Checking newline and tab formats which are supported o…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
34 var_dump( strftime($value) );
35 var_dump( strftime($value, $timestamp) );
41 \*\*\* Testing strftime\(\) : usage variation \*\*\*
H A Dstrftime_variation4.phpt2 Test strftime() function : usage variation - Passing month related format strings to format argumen…
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
28 var_dump( strftime($value) );
29 var_dump( strftime($value, $timestamp) );
35 *** Testing strftime() : usage variation ***
H A Dstrftime_variation10.phpt2 Test strftime() function : usage variation - Checking week related formats which are supported othe…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
34 var_dump( strftime($value) );
35 var_dump( strftime($value, $timestamp) );
41 *** Testing strftime() : usage variation ***
H A Dstrftime_variation13.phpt2 Test strftime() function : usage variation - Checking date related formats which was not supported …
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
30 var_dump( strftime($value) );
31 var_dump( strftime($value, $timestamp) );
37 *** Testing strftime() : usage variation ***
H A D009_win32.phpt2 strftime() and gmstrftime() tests
17 var_dump(strftime());
19 var_dump(strftime(""));
21 var_dump(strftime("%a %A %b %B %c %d %H %I %j %m %M %p %S %U %W %w %x %X %y %Y %Z %z %%", $t));
23 var_dump(strftime("%%q %%a", $t));
25 var_dump(strftime("blah", $t));
42 Warning: strftime() expects at least 1 parameter, 0 given in %s on line %d
H A Dstrftime_variation14.phpt2 Test strftime() function : usage variation - Checking date related formats which are supported othe…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
36 var_dump( strftime($value) );
37 var_dump( strftime($value, $timestamp) );
43 *** Testing strftime() : usage variation ***
H A Dstrftime_variation15.phpt2 Test strftime() function : usage variation - Checking time related formats which was not supported …
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
29 var_dump( strftime($value) );
30 var_dump( strftime($value, $timestamp) );
36 *** Testing strftime() : usage variation ***
H A Dstrftime_variation21.phpt2 Test strftime() function : usage variation - Checking Preferred date and time representation on Win…
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
29 var_dump( strftime($value) );
30 var_dump( strftime($value, $timestamp) );
36 *** Testing strftime() : usage variation ***
H A Dstrftime_variation3.phpt2 Test strftime() function : usage variation - Passing week related format strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
28 var_dump( strftime($value) );
29 var_dump( strftime($value, $timestamp) );
35 *** Testing strftime() : usage variation ***
H A Dstrftime_variation5.phpt2 Test strftime() function : usage variation - Passing date related format strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
30 var_dump( strftime($value) );
31 var_dump( strftime($value, $timestamp) );
37 *** Testing strftime() : usage variation ***
H A Dstrftime_variation7.phpt2 Test strftime() function : usage variation - Passing day related format strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
30 var_dump( strftime($value) );
31 var_dump( strftime($value, $timestamp) );
37 *** Testing strftime() : usage variation ***
H A Dstrftime_variation16.phpt2 Test strftime() function : usage variation - Checking time related formats which are supported othe…
11 /* Prototype : string strftime(string format [, int timestamp])
17 echo "*** Testing strftime() : usage variation ***\n";
35 var_dump( strftime($value) );
36 var_dump( strftime($value, $timestamp) );
42 *** Testing strftime() : usage variation ***
H A Dstrftime_variation6.phpt2 Test strftime() function : usage variation - Passing time related format strings to format argument.
5 /* Prototype : string strftime(string format [, int timestamp])
11 echo "*** Testing strftime() : usage variation ***\n";
32 var_dump( strftime($value) );
33 var_dump( strftime($value, $timestamp) );
39 *** Testing strftime() : usage variation ***

Completed in 33 milliseconds

12