/PHP-5.5/ext/date/tests/ |
H A D | idate_error.phpt | 5 /* Prototype : int idate(string format [, int timestamp]) 17 $format = '%b %d %Y %H:%M:%S'; 20 var_dump( idate($format, $timestamp, $extra_arg) );
|
H A D | idate_variation1.phpt | 5 /* Prototype : int idate(string format [, int timestamp]) 89 // loop through each element of the array for format 120 Warning: idate(): idate format is one char in %s on line %d 123 Warning: idate(): idate format is one char in %s on line %d 128 Warning: idate(): idate format is one char in %s on line %d 131 Warning: idate(): idate format is one char in %s on line %d 136 Warning: idate(): idate format is one char in %s on line %d 139 Warning: idate(): idate format is one char in %s on line %d 144 Warning: idate(): idate format is one char in %s on line %d 147 Warning: idate(): idate format is one char in %s on line %d [all …]
|
H A D | idate_variation2.phpt | 5 /* Prototype : int idate(string format [, int timestamp]) 14 $format = 'Y'; 91 var_dump( idate($format, $value) );
|
H A D | idate_variation3.phpt | 5 /* Prototype : int idate(string format [, int timestamp]) 14 $format = 'Y'; 19 var_dump( idate($format, $timestamp) ); 23 var_dump( idate($format, $timestamp) );
|
H A D | idate_variation4.phpt | 2 Test idate() function : usage variation - Passing supported Date format characters to format argume… 5 /* Prototype : int idate(string format [, int timestamp])
|
H A D | idate_variation5.phpt | 2 Test idate() function : usage variation - Passing supported Time format characters to format argume… 5 /* Prototype : int idate(string format [, int timestamp]) 20 '12 hour format' => 'h', 21 '24 hour format' => 'H', 42 --12 hour format-- 45 --24 hour format--
|
H A D | idate_variation6.phpt | 2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi… 5 /* Prototype : int idate(string format [, int timestamp]) 15 $format = 'y'; 19 var_dump( idate($format, $timestamp) ); 23 var_dump( idate($format, $timestamp) );
|
H A D | oo_001.phpt | 16 var_dump($d->format("Y-m-d H:i:s")); 19 var_dump($d->format("Y-m-d H:i:s")); 44 Warning: DateTime::format(): The DateTime object has not been correctly initialized by its construc…
|
H A D | oo_002.phpt | 9 var_dump($d->format(DateTime::RFC822)); 11 var_dump($c->format(DateTime::RFC822)); 14 var_dump($d->format(DateTime::RFC822)); 15 var_dump($c->format(DateTime::RFC822));
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 159 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type2.phpt | 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 echo 'fd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 149 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 154 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 159 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-ba.phpt | 20 . $start->add($interval)->format($date_format) . "\n"; 26 . $start->add($interval)->format($date_format) . "\n"; 32 . $start->add($interval)->format($date_format) . "\n"; 38 . $start->add($interval)->format($date_format) . "\n"; 44 . $start->add($interval)->format($date_format) . "\n"; 50 . $start->add($interval)->format($date_format) . "\n"; 56 . $start->add($interval)->format($date_format) . "\n"; 62 . $start->add($interval)->format($date_format) . "\n"; 68 . $start->add($interval)->format($date_format) . "\n"; 74 . $start->add($interval)->format($date_format) . "\n"; [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd1.phpt | 18 echo 'bd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 19 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 23 echo 'bd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 28 echo 'bd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 33 echo 'bd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 38 echo 'bd7 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 39 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 29 echo 'bd0 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 30 . ' = ' . $start->diff($end)->format('P%dDT%hH%iM%sS') . "\n"; 35 echo 'bd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 36 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 41 echo 'bd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 42 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 47 echo 'bd8 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 48 . ' = ' . $start->diff($end)->format($interval_format) . "\n";
|
H A D | rfc-datetime_and_daylight_saving_time-type3-bs.phpt | 21 echo 'bs1 ' . $end->format($date_format) . " - $interval_spec = " 22 . $end->sub($interval)->format($date_format) . "\n"; 28 . $end->sub($interval)->format($date_format) . "\n"; 34 . $end->sub($interval)->format($date_format) . "\n"; 40 . $end->sub($interval)->format($date_format) . "\n"; 47 . $end->sub($interval)->format($date_format) . "\n"; 54 . $end->sub($interval)->format($date_format) . "\n"; 60 . $end->sub($interval)->format($date_format) . "\n"; 67 . $end->sub($interval)->format($date_format) . "\n"; 73 . $end->sub($interval)->format($date_format) . "\n"; [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fa.phpt | 19 echo 'fa1 ' . $start->format($date_format) . " + $interval_spec = " 20 . $start->add($interval)->format($date_format) . "\n"; 25 echo 'fa2 ' . $start->format($date_format) . " + $interval_spec = " 26 . $start->add($interval)->format($date_format) . "\n"; 31 echo 'fa3 ' . $start->format($date_format) . " + $interval_spec = " 32 . $start->add($interval)->format($date_format) . "\n"; 37 echo 'fa4 ' . $start->format($date_format) . " + $interval_spec = " 38 . $start->add($interval)->format($date_format) . "\n"; 43 echo 'fa5 ' . $start->format($date_format) . " + $interval_spec = " 44 . $start->add($interval)->format($date_format) . "\n"; [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fd.phpt | 18 echo 'fd1 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 19 . ' = ' . $start->diff($end)->format('PT%hH%iM%sS') . "\n"; 23 echo 'fd2 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 24 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 28 echo 'fd3 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 29 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 33 echo 'fd4 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 34 . ' = ' . $start->diff($end)->format($interval_format) . "\n"; 38 echo 'fd5 ' . $end->format($date_format) . ' - ' . $start->format($date_format) 43 echo 'fd6 ' . $end->format($date_format) . ' - ' . $start->format($date_format) [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type3-fs.phpt | 21 echo 'fs1 ' . $end->format($date_format) . " - $interval_spec = " 22 . $end->sub($interval)->format($date_format) . "\n"; 27 echo 'fs2 ' . $end->format($date_format) . " - $interval_spec = " 28 . $end->sub($interval)->format($date_format) . "\n"; 33 echo 'fs3 ' . $end->format($date_format) . " - $interval_spec = " 34 . $end->sub($interval)->format($date_format) . "\n"; 39 echo 'fs4 ' . $end->format($date_format) . " - $interval_spec = " 40 . $end->sub($interval)->format($date_format) . "\n"; 46 . $end->sub($interval)->format($date_format) . "\n"; 52 . $end->sub($interval)->format($date_format) . "\n"; [all …]
|
H A D | strftime_basic.phpt | 5 /* Prototype : string strftime(string format [, int timestamp]) 15 $format = '%b %d %Y %H:%M:%S'; 19 var_dump( strftime($format, $timestamp) ); 22 var_dump( strftime($format) );
|
H A D | strftime_error.phpt | 5 /* Prototype : string strftime(string format [, int timestamp]) 16 $format = '%b %d %Y %H:%M:%S'; 19 var_dump( strftime($format, $timestamp, $extra_arg) );
|
H A D | strftime_variation1.phpt | 2 Test strftime() function : usage variation - Passing unexpected values to first argument 'format'. 5 /* Prototype : string strftime(string format [, int timestamp]) 90 // loop through each element of the array for format
|
H A D | strftime_variation10.phpt | 11 /* Prototype : string strftime(string format [, int timestamp])
|
H A D | strftime_variation11.phpt | 11 /* Prototype : string strftime(string format [, int timestamp]) 24 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n"; 25 $format = "%h"; 26 var_dump( strftime($format) ); 27 var_dump( strftime($format, $timestamp) ); 34 -- Testing strftime() function with Abbreviated month name format %h --
|
H A D | strftime_variation12.phpt | 11 /* Prototype : string strftime(string format [, int timestamp]) 24 echo "\n-- Testing strftime() function with Abbreviated month name format %h --\n"; 25 $format = "%h"; 26 var_dump( strftime($format) ); 27 var_dump( strftime($format, $timestamp) ); 34 -- Testing strftime() function with Abbreviated month name format %h --
|
H A D | strftime_variation13.phpt | 11 /* Prototype : string strftime(string format [, int timestamp])
|