/PHP-5.5/ext/date/tests/ |
H A D | 002.phpt | 36 foreach ($dates as $date) { 37 echo date ("Y-m-d H:i:s\n", strtotime ($date)); 42 if( date("T") == "GMT" ) { 47 foreach ($dates as $date) { 48 echo date ("Y-m-d H:i:s\n", strtotime ($date));
|
H A D | date-lenient.phpt | 2 Test for + character in date format 5 $date = "06/08/04 12:00"; 6 print_r( date_parse_from_format( 'm/d/y', $date ) ); 7 print_r( date_parse_from_format( 'm/d/y+', $date ) ); 8 print_r( date_parse_from_format( '+m/d/y', $date ) ); 9 print_r( date_parse_from_format( 'm/d/y++', $date ) ); 11 $date = "06/08/04"; 12 print_r( date_parse_from_format( 'm/d/y+', $date ) ); 13 print_r( date_parse_from_format( '+m/d/y', $date ) );
|
H A D | bug30532.phpt | 4 date.timezone=America/New_York 8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n"; 9 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n"; 10 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n"; 14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n"; 15 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n"; 16 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
|
H A D | bug33869.phpt | 7 echo date(DATE_ISO8601, strtotime('+5days', $tm)); 9 echo date(DATE_ISO8601, strtotime('+1month', $tm)); 11 echo date(DATE_ISO8601, strtotime('+1year', $tm)); 13 echo date(DATE_ISO8601, strtotime('+5 days', $tm)); 15 echo date(DATE_ISO8601, strtotime('+1 month', $tm)); 17 echo date(DATE_ISO8601, strtotime('+1 year', $tm));
|
H A D | bug49585.phpt | 7 $date = new DateTime('-1500-01-01'); 8 var_dump($date->format('r')); 10 $date->setDate(-2147483648, 1, 1); 11 var_dump($date->format('r')); 12 var_dump($date->format('c'));
|
H A D | bug50475.phpt | 7 $date = new DateTime('18-01-2009 00:00:00'); 9 $date->setISODate(2009, 6, 1); 11 var_dump($date->format('Y-m-d H:i:s')); 13 $date->setTime(8, 0); 14 var_dump($date->format('Y-m-d H:i:s'));
|
H A D | bug37514.phpt | 6 echo date('r', strtotime('May 18th 5:05', 1168156376)), "\n"; 7 echo date('r', strtotime('May 18th 5:05pm', 1168156376)), "\n"; 8 echo date('r', strtotime('May 18th 5:05 pm', 1168156376)), "\n"; 9 echo date('r', strtotime('May 18th 5:05am', 1168156376)), "\n"; 10 echo date('r', strtotime('May 18th 5:05 am', 1168156376)), "\n"; 11 echo date('r', strtotime('May 18th 2006 5:05pm', 1168156376)), "\n";
|
H A D | bug33957.phpt | 2 Bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number) 8 echo "1992-12-$i ", date("W", strtotime("1992-12-$i")), "\n"; 11 echo "1993-01-$i ", date("W", strtotime("1993-01-$i")), "\n"; 23 echo sprintf(" %02d-", date("W", strtotime("$year-12-$i"))); 24 echo sprintf("%04d ", date("o", strtotime("$year-12-$i"))); 31 echo sprintf(" %02d-", date("W", strtotime("$year-1-$i"))); 32 echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
|
H A D | bug44742.phpt | 19 foreach ($dates as $date) 21 $date = date_create($date); 22 var_dump(timezone_offset_get(date_timezone_get($date), $date));
|
H A D | bug33414-1.phpt | 4 date.timezone=America/Mendoza 10 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 18 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 26 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 34 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 43 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 51 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 59 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 67 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 75 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; [all …]
|
H A D | bug67109.phpt | 2 Bug #67109 (First uppercase letter breaks date string parsing) 4 date.timezone=UTC 7 var_dump(date('d.m.Y',strtotime('last day of april'))); 8 var_dump(date('d.m.Y',strtotime('Last day of april'))); 9 var_dump(date('d.m.Y',strtotime('lAst Day of April')));
|
H A D | bug32270.phpt | 2 Bug #32270 (strtotime/date behavior) 4 date.timezone=America/Los_Angeles 8 echo date("m/d/Y H:i:s T", -2145888000)."\n"; 12 echo date("m/d/Y H:i:s T", -631123200)."\n"; 16 echo date("m/d/Y H:i:s T", 946713600)."\n";
|
H A D | bug34087.phpt | 2 Bug #34087 (strtotime() does not work with date format "Y/m/d") 9 echo date(DATE_ISO8601, strtotime("2005/1/2")), "\n"; 10 echo date(DATE_ISO8601, strtotime("2005/01/02")), "\n"; 11 echo date(DATE_ISO8601, strtotime("2005/01/2")), "\n"; 12 echo date(DATE_ISO8601, strtotime("2005/1/02")), "\n";
|
H A D | mktime_basic1.phpt | 5 …nt $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n"… 6 * Description: Get Unix timestamp for a date 7 * Source code: ext/date/php_date.c
|
H A D | mktime_error.phpt | 5 …nt $hour= date("H") [, int $minute= date("i") [, int $second= date("s") [, int $month= date("n"… 6 * Description: Get Unix timestamp for a date 7 * Source code: ext/date/php_date.c
|
H A D | date_variation2.phpt | 5 /* Prototype : string date ( string $format [, int $timestamp ] ) 6 * Description: Format a local time/date. 7 * Source code: ext/date/php_date.c 101 var_dump( date($format, $timestamp) ); 135 Warning: date() expects parameter 2 to be long, array given in %s on line %d 140 Warning: date() expects parameter 2 to be long, array given in %s on line %d 145 Warning: date() expects parameter 2 to be long, array given in %s on line %d 150 Warning: date() expects parameter 2 to be long, array given in %s on line %d 173 Warning: date() expects parameter 2 to be long, string given in %s on line %d 178 Warning: date() expects parameter 2 to be long, string given in %s on line %d [all …]
|
H A D | date_default_timezone_set-1.phpt | 8 date.timezone= 19 echo date(DATE_ISO8601, $date1), "\n"; 20 echo date(DATE_ISO8601, $date2), "\n"; 21 echo date(DATE_ISO8601, $date3), "\n"; 22 echo date(DATE_ISO8601, $date4), "\n"; 25 …date.timezone setting or the date_default_timezone_set() function. In case you used any of those m… 27 …date.timezone setting or the date_default_timezone_set() function. In case you used any of those m…
|
H A D | bug35699.phpt | 2 Bug #35699 (date() can't handle leap years before 1970) 7 echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n"; 8 echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n"; 9 echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
|
H A D | bug28088.phpt | 4 date.timezone=UTC 7 echo "The following line rightly shows the correct date time:\n"; 10 echo "But the following line fails to show the correct date time:\n"; 14 The following line rightly shows the correct date time: 16 But the following line fails to show the correct date time:
|
H A D | bug67308.phpt | 4 date.timezone=America/Vancouver 8 var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:19:"2005-07-14 22:30:41";s:13:"timezone_type";… 11 var_dump(unserialize('O:8:"DateTime":3:{s:4:"date";s:26:"2005-07-14 22:30:41.123456";s:13:"timezone… 14 ["date"]=> 22 ["date"]=>
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | bug65230.phpt | 10 date.timezone=Europe/Berlin 24 printf("date: %s\n", strftime('%x', mktime(0, 0, 0, 12, 5, 2014))); 38 date: 05.12.2014 45 date: 12/5/2014 52 date: 05/12/2014 59 date: 05.12.2014
|
/PHP-5.5/ext/xmlrpc/tests/ |
H A D | bug45226.phpt | 2 Bug #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string) 4 date.timezone="America/Sao_Paulo" 10 $d = date(DATE_ISO8601); 12 echo xmlrpc_encode_request('method.call', array('date' => $d)); 16 echo xmlrpc_encode_request('method.call', array('date' => $d)); 28 <name>date</name> 46 <name>date</name>
|
/PHP-5.5/ext/calendar/tests/ |
H A D | easter_date.phpt | 4 date.timezone=UTC 10 echo date("Y-m-d", easter_date(2000))."\n"; 11 echo date("Y-m-d", easter_date(2001))."\n"; 12 echo date("Y-m-d", easter_date(2002))."\n"; 13 echo date("Y-m-d", easter_date(1492))."\n";
|
H A D | jdtounix.phpt | 4 date.timezone=UTC 9 echo date("Y-m-d",jdtounix(2440588)). "\n"; 10 echo date("Y-m-d",jdtounix(2452162)). "\n"; 11 echo date("Y-m-d",jdtounix(2453926)). "\n";
|
/PHP-5.5/ext/date/lib/ |
H A D | README | 6 re2c -d -b -o ext/date/lib/parse_date.c ext/date/lib/parse_date.re 7 re2c -d -b -o ext/date/lib/parse_iso_intervals.c ext/date/lib/parse_iso_intervals.re
|