/php-src/ext/date/tests/ |
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 | 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");
|
H A D | bug32588.phpt | 4 date.timezone=America/New_York 8 echo date('D Y/m/d/H:i:s', strtotime('last saturday', 1112703348)). "\n"; 9 echo date('D Y/m/d/H:i:s', strtotime("last sunday", 1112703348)). "\n"; 10 echo date('D Y/m/d/H:i:s', strtotime('last monday', 1112703348)). "\n";
|
H A D | bug-gh11416.phpt | 4 date.timezone=UTC 10 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 12 new DatePeriod($date, new DateInterval('P1D'), 2); 17 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 19 new DatePeriod($now, new DateInterval('P1D'), $date); 24 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); 28 $dateperiod->__unserialize(['start' => $date]); 34 $dateperiod->__unserialize(['start' => $now, 'end' => $date]); 40 $dateperiod->__unserialize(['start' => $now, 'end' => $now, 'current' => $date]);
|
H A D | timezone_offset_get_basic1.phpt | 11 $date = date_create("GMT"); 13 var_dump(timezone_offset_get($tz, $date)); 16 var_dump(timezone_offset_get($tz, $date)); 19 var_dump(timezone_offset_get($tz, $date));
|
H A D | bug48276.phpt | 2 Bug #48276 (date("Y") prints wrong year on Big Endian machines) 4 date.timezone=UTC 7 var_dump(date("Y", 1245623227));
|
H A D | bug20382-1.phpt | 2 Bug #20382 [1] (strtotime ("Monday", $date) produces wrong result on DST changeover) 4 date.timezone=Europe/Amsterdam 8 echo "tStamp=". date("l Y-m-d H:i:s T", $tStamp). "\n"; 11 echo "result=". date("l Y-m-d H:i:s T", $strtotime_timestamp). "\n";
|
H A D | bug26317.phpt | 4 date.timezone=GMT0 13 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z")); 14 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 09:20:42 T")); 15 echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 19:20:42 C"));
|
H A D | DateTimeZone_getOffset_basic1.phpt | 11 $date = new DateTime("GMT"); 12 var_dump( $tz1->getOffset($date) ); 15 var_dump( $tz2->getOffset($date) ); 18 var_dump( $tz3->getOffset($date) );
|
H A D | bug54340.phpt | 4 date.timezone=UTC 22 ["date"]=> 30 ["date"]=> 38 ["date"]=>
|
H A D | bug75167.phpt | 9 $date = new DateTime("2014-3-30 00:00:00", $tz); 11 // Add five hours and subtract 5 hours. The $newDate should then equal the date. 12 $five_hours_later = (clone $date)->add($five_hours_interval); 15 echo $date->format('c') . "\n";
|
H A D | bug80483.phpt | 4 date.timezone=UTC 20 ["date"]=> 27 string(116) "O:8:"DateTime":3:{s:4:"date";s:28:"+20201-01-01 00:00:00.000000";s:13:"timezone_type";… 29 ["date"]=>
|
H A D | bug36224.phpt | 2 Bug #36224 (date(DATE_ATOM) gives wrong resulsts) 7 echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56Z')) . "\n"; 8 echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56')) . "\n";
|
/php-src/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); 22 PHP_INSTALL_HEADERS("ext/date", "php_date.h lib/timelib.h lib/timelib_config.h");
|
H A D | php_date.h | 46 PHP_RINIT_FUNCTION(date); 47 PHP_RSHUTDOWN_FUNCTION(date); 48 PHP_MINIT_FUNCTION(date); 49 PHP_MSHUTDOWN_FUNCTION(date); 50 PHP_MINFO_FUNCTION(date); 51 ZEND_MODULE_POST_ZEND_DEACTIVATE_D(date); 123 ZEND_BEGIN_MODULE_GLOBALS(date) 128 ZEND_END_MODULE_GLOBALS(date) 130 #define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v)
|
/php-src/ext/intl/tests/ |
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 | 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),
|
H A D | bug69398-icu74.1.phpt | 12 $date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh'); 13 $date->setTime($millitimestamp); 14 echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE… 15 echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NON…
|
H A D | bug69398.phpt | 13 $date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh'); 14 $date->setTime($millitimestamp); 15 echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE… 16 echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NON…
|
H A D | bug69374.phpt | 12 $date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh'); 13 $date->setTime($millitimestamp); 14 echo IntlDateFormatter::formatObject($date, $pattern1, 'vi_VN'), "\n"; 15 echo IntlDateFormatter::formatObject ($date, $pattern2, 'ko_KR'), "\n";
|
H A D | calendar_fromDateTime_error.phpt | 22 $date = new DateTime('2012-01-01 00:00:00 +24:00'); 23 var_dump(IntlCalendar::fromDateTime($date)); 25 $date = new DateTime('2012-01-01 00:00:00 WEST'); 26 var_dump(IntlCalendar::fromDateTime($date)); 36 …ateTime(): intlcal_from_date_time: time zone id 'WEST' extracted from ext/date DateTimeZone not re…
|
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')), " ",
|
/php-src/ext/xsl/tests/ |
H A D | xsltprocessor_exsl_registerPhpFunctionNs.phpt | 28 xmlns:date="http://exslt.org/dates-and-times" 29 extension-element-prefixes="date"> 31 <xsl:template match="date"><xsl:value-of select="date:year(@date)"/></xsl:template> 37 <page><date date="2007-12-31"/></page>
|
/php-src/ext/calendar/tests/ |
H A D | easter_date_32bit.phpt | 6 date.timezone=UTC 14 echo date("Y-m-d", easter_date(2000))."\n"; 15 echo date("Y-m-d", easter_date(2001))."\n"; 16 echo date("Y-m-d", easter_date(2002))."\n";
|