/PHP-8.1/ext/date/tests/ |
H A D | DateTime_createFromInterface-002.phpt | 4 date.timezone=Europe/London 35 ["date"]=> 43 ["date"]=> 51 ["date"]=> 59 ["date"]=> 67 ["date"]=> 75 ["date"]=>
|
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 | 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";
|
H A D | bug33414-2.phpt | 8 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 10 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; 16 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 18 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; 24 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 32 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 40 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 48 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 56 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 64 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; [all …]
|
H A D | bug75851.phpt | 2 Test for bug #75851: Year component overflow with date formats "c", "o", "r" and "y" 6 date.timezone = UTC 9 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MIN); 10 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532799); 11 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", 67767976233532800); 12 echo date(DATE_ATOM."\n".DATE_RFC2822."\nc\nr\no\ny\nY\nU\n\n", PHP_INT_MAX);
|
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… 15 ["date"]=> 23 ["date"]=>
|
H A D | bug69089.phpt | 9 $date = new DateTime('2009-09-28 09:45:31.918312'); 11 var_dump($date->format(DateTime::RFC3339_EXTENDED)); 12 var_dump($date->format('u')); 13 var_dump($date->format('v'));
|
H A D | strtotime_variation_scottish.phpt | 6 var_dump(date('H:i:s', strtotime('back of 7'))); 7 var_dump(date('H:i:s', strtotime('front of 7'))); 8 var_dump(date('H:i:s', strtotime('back of 19'))); 9 var_dump(date('H:i:s', strtotime('front of 19')));
|
H A D | bug35414.phpt | 7 echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")) . "\n"; 8 echo date(DATE_ISO8601, strtotime("26th Nov", 1134340285)) . "\n"; 9 echo date(DATE_ISO8601, strtotime("Dec. 4th, 2005")) . "\n"; 10 echo date(DATE_ISO8601, strtotime("December 4th, 2005")) . "\n";
|
H A D | gh10447.phpt | 5 $date = new \DateTimeImmutable('2023-01-25T00:00:00+00:00'); 6 echo $date->format('Y-m-d\TH:i:sp'), "\n"; 8 $date = new \DateTimeImmutable('2023-01-25T00:00:00-00:00'); 9 echo $date->format('Y-m-d\TH:i:sp'), "\n";
|
H A D | bug-gh11416.phpt | 4 date.timezone=UTC 9 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 11 new DatePeriod($date, new DateInterval('P1D'), 2); 16 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 18 new DatePeriod($now, new DateInterval('P1D'), $date);
|
H A D | bug80913.phpt | 5 $date = new DateTime('2021-03-28 03:00:00', new DateTimeZone('Europe/Amsterdam')); 6 $_30mbefore = (clone $date)->sub(new DateInterval('PT30M')); 7 $_30mafter = (clone $date)->add(new DateInterval('PT30M')); 9 var_dump($date->format(DATE_ATOM));
|
H A D | bug46874.phpt | 7 foreach ($dp as $date) { 8 echo $date->format("Y-m-d H:i:s\n"); 14 foreach ($dp as $date) { 15 echo $date->format("Y-m-d H:i:s\n");
|
/PHP-8.1/ext/calendar/tests/ |
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";
|
H A D | easter_date.phpt | 4 date.timezone=UTC 12 echo date("Y-m-d", easter_date(2000))."\n"; 13 echo date("Y-m-d", easter_date(2001))."\n"; 14 echo date("Y-m-d", easter_date(2002))."\n";
|
/PHP-8.1/ext/standard/tests/strings/ |
H A D | bug65230.phpt | 10 date.timezone=Europe/Berlin 25 printf("date: %s\n", strftime('%x', mktime(0, 0, 0, 12, 5, 2014))); 40 date: 05.12.2014 47 date: 12/5/2014 54 date: 05/12/2014 61 date: 05.12.2014
|
/PHP-8.1/ext/date/ |
H A D | config.w32 | 3 EXTENSION("date", "php_date.c", false, "/Iext/date/lib /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DHAVE_T… 5 …"ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_posix.c parse_tz.c tm2unixtime.c unixt… 9 var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); 21 PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_config.h");
|
H A D | php_date.h | 29 PHP_RINIT_FUNCTION(date); 30 PHP_RSHUTDOWN_FUNCTION(date); 31 PHP_MINIT_FUNCTION(date); 32 PHP_MSHUTDOWN_FUNCTION(date); 33 PHP_MINFO_FUNCTION(date); 34 ZEND_MODULE_POST_ZEND_DEACTIVATE_D(date); 103 ZEND_BEGIN_MODULE_GLOBALS(date) 109 ZEND_END_MODULE_GLOBALS(date) 111 #define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v)
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | 005_basic.phpt | 7 print( @date('Y:M:D:H:i:s', fileatime(__FILE__)) )."\n"; 8 print( @date('Y:M:D:H:i:s', filemtime(__FILE__)) )."\n"; 9 print( @date('Y:M:D:H:i:s', filectime(__FILE__)) )."\n"; 10 print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic.tmp")) )."\n"; 13 print( @date('Y:M:D:H:i:s', fileatime(".")) )."\n"; 14 print( @date('Y:M:D:H:i:s', filemtime(".")) )."\n"; 15 print( @date('Y:M:D:H:i:s', filectime(".")) )."\n"; 16 print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic")) )."\n";
|
/PHP-8.1/ext/standard/tests/array/ |
H A D | array_column_variant.phpt | 7 456 => array('id' => '3', 'title' => 'Foo', 'date' => '2013-03-25'), 8 457 => array('id' => '5', 'title' => 'Bar', 'date' => '2012-05-20'), 31 ["date"]=> 40 ["date"]=> 52 ["date"]=> 61 ["date"]=> 73 ["date"]=> 82 ["date"]=>
|
/PHP-8.1/ext/intl/tests/ |
H A D | msgfmt_format_error5.phpt | 2 MessageFormatter::format() invalid date/time argument 4 date.timezone=Atlantic/Azores 12 {foo,date} 19 Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCal… 21 Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in…
|
H A D | msgfmt_format_intlcalendar.phpt | 11 ini_set('date.timezone', 'Europe/Lisbon'); 15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}'); 20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}'); 22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
|
H A D | msgfmt_format_intlcalendar_variant2.phpt | 11 ini_set('date.timezone', 'Europe/Lisbon'); 15 $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}'); 20 '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}'); 22 echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
|
H A D | timezone_getOffset_basic.phpt | 4 date.timezone=Atlantic/Azores 12 $date = strtotime("1 July 2012 +0000"); 14 var_dump($ams->getOffset($date *1000., true, $rawOffset, $dstOffset), 19 var_dump(intltz_get_offset($lsb, $date *1000., true, $rawOffset, $dstOffset),
|