Home
last modified time | relevance | path

Searched refs:date (Results 51 – 75 of 583) sorted by relevance

12345678910>>...24

/PHP-8.1/ext/date/tests/
H A DDateTime_createFromInterface-002.phpt4 date.timezone=Europe/London
35 ["date"]=>
43 ["date"]=>
51 ["date"]=>
59 ["date"]=>
67 ["date"]=>
75 ["date"]=>
H A Dbug35699.phpt2 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 Ddate_default_timezone_set-1.phpt8 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 Dbug33414-2.phpt8 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 Dbug75851.phpt2 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 Dbug28088.phpt4 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 Dbug67308.phpt4 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 Dbug69089.phpt9 $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 Dstrtotime_variation_scottish.phpt6 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 Dbug35414.phpt7 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 Dgh10447.phpt5 $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 Dbug-gh11416.phpt4 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 Dbug80913.phpt5 $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 Dbug46874.phpt7 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 Djdtounix.phpt4 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 Deaster_date.phpt4 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 Dbug65230.phpt10 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 Dconfig.w323 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 Dphp_date.h29 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 D005_basic.phpt7 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 Darray_column_variant.phpt7 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 Dmsgfmt_format_error5.phpt2 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 Dmsgfmt_format_intlcalendar.phpt11 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 Dmsgfmt_format_intlcalendar_variant2.phpt11 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 Dtimezone_getOffset_basic.phpt4 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),

Completed in 27 milliseconds

12345678910>>...24