/PHP-8.0/ext/date/tests/ |
H A D | bug51393.phpt | 8 var_dump($dt->getOffset()); 11 var_dump($dt->getOffset()); 14 var_dump($dt->getOffset()); 17 var_dump($dt->getOffset()); 20 var_dump($dt->getOffset()); 23 var_dump($dt->getOffset()); 26 var_dump($dt->getOffset()); 29 var_dump($dt->getOffset()); 32 var_dump($dt->getOffset()); 35 var_dump($dt->getOffset()); [all …]
|
H A D | bug40743.phpt | 6 echo $dt->format(DATE_RFC822), "\n"; 7 echo $dt->format('T e Z'), "\n"; 12 $dt = new DateTime('16 Jan 08 13:04:59'); 13 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 15 $dt = new DateTime('@1200506699'); 16 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 18 $dt = new DateTime('@1200506699'); 20 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 23 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; 26 echo $dt->format(DATE_RFC822 . " e T O U"), "\n"; [all …]
|
H A D | bug52290.phpt | 9 $dt = new DateTime('@'.$ts); 10 $dt->setTimezone(new DateTimeZone($tz)); 12 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 14 $dt->setISODate(2005, 52, 1); 15 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 17 $dt->setDate(2007, 10, 10); 18 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U')); 20 $dt->setTime(20, 30, 40); 21 var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
|
H A D | date_period-immutable.phpt | 11 foreach ( new DatePeriod( $db1, $di, $de ) as $dt ) 13 echo get_class( $dt ), "\n"; 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 19 foreach ( new DatePeriod( $db2, $di, $de ) as $dt ) 21 echo get_class( $dt ), "\n"; 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|
H A D | bug54340.phpt | 9 $dt = new DateTime('first day of January 2011'); 10 var_dump($dt); 12 $dt->add($interval); 13 var_dump($dt); 15 $dt = new DateTime('first day of January 2011'); 17 $dt->sub($interval); 18 var_dump($dt);
|
H A D | date_time_fractions_create_from_format.phpt | 7 $dt = date_create_from_format( "Y-m-d H:i:s.u", "2016-10-03 12:47:18.819313" ); 8 var_dump( $dt ); 10 $dt = date_create_from_format( "U.u", "1475500799.176312" ); 11 var_dump( $dt );
|
H A D | bug54316.phpt | 7 $dt = DateTime::createFromFormat('Y-m-d|', '2011-02-02'); 8 var_dump($dt); 10 $dt = DateTime::createFromFormat('Y-m-d!', '2011-02-02'); 11 var_dump($dt);
|
H A D | date_time_fractions.phpt | 15 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.819210" ); 16 echo $dt->modify( "+1 day" )->format( "Y-m-d H:i:s.u" ), "\n"; 18 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" ); 19 echo $dt->modify( "-3 months" )->format( "Y-m-d H:i:s.u" ), "\n"; 24 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" ); 25 echo $dt->modify( "yesterday" )->format( "Y-m-d H:i:s.u" ), "\n"; 27 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" ); 28 echo $dt->modify( "noon" )->format( "Y-m-d H:i:s.u" ), "\n"; 30 $dt = new DateTimeImmutable( "2016-10-03 12:47:18.081921" ); 31 echo $dt->modify( "10 weekday" )->format( "Y-m-d H:i:s.u" ), "\n";
|
H A D | bug73837.phpt | 12 $dt = new DateTime(); 13 if ($prev_dt > $dt) { 15 var_dump($dt->format("Y-m-d H:i:s.u")); 18 $prev_dt = $dt;
|
H A D | bug52668.phpt | 10 foreach($dp as $dt) { 11 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100 14 foreach($dp as $dt) { 15 echo $dt->format('r') . "\n"; // Sun, 12 Dec 2010 00:00:00 +0100
|
H A D | bug74671.phpt | 5 $dt = new DateTime( 9 var_dump($dt); 10 var_dump($dt->format('c'));
|
H A D | date_period.phpt | 10 foreach ( new DatePeriod( $db, $di, $de ) as $dt ) 12 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 21 foreach ( new DatePeriod( $db, $di, $de, DatePeriod::EXCLUDE_START_DATE ) as $dt ) 23 echo $dt->format( "l Y-m-d H:i:s\n" );
|
H A D | DateTime_data-spring-type3-type2.inc | 16 * + dt: daylight time on the transition day 2010-03-14 03:16:55 EDT 32 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 52 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 63 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 68 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 72 $end = new DateTime('2010-03-14 05:19:56 EDT'); // sp dt, zt2 73 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 78 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 92 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2
|
H A D | DateTime_data-spring-type3-type3.inc | 16 * + dt: daylight time on the transition day 2010-03-14 03:16:55 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 63 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 68 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 72 $end = new DateTime('2010-03-14 05:19:56'); // sp dt, zt3 73 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 78 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 92 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
|
H A D | DateTime_data-spring-type2-type3.inc | 16 * + dt: daylight time on the transition day 2010-03-14 03:16:55 EDT 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 63 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 68 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 72 $end = new DateTime('2010-03-14 05:19:56'); // sp dt, zt3 73 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 78 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 92 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
|
H A D | bug63740.phpt | 21 $dt = new DateTimeImmutable( "$date 00:00 UTC" ); 23 echo $dt->format( "D Y-m-d H:i" ), " → "; 25 $dtn = $dt->modify( "this week" );
|
H A D | DateTime_data-spring-type2-type2.inc | 16 * + dt: daylight time on the transition day 2010-03-14 03:16:55 EDT 32 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 52 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 63 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 68 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 72 $end = new DateTime('2010-03-14 05:19:56 EDT'); // sp dt, zt2 73 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 78 $start = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 92 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2
|
H A D | bug80047.phpt | 10 $dt = new DateTime('2022-06-24'); 17 [ $dt, $i, $cdt ], 18 [ $cdt, $i, $dt ],
|
/PHP-8.0/ext/intl/tests/ |
H A D | dateformat_formatObject_datetime.phpt | 13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon 14 echo IntlDateFormatter::formatObject($dt), "\n"; 15 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n"; 16 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n"; 17 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),… 18 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n"; 20 $dt = new DateTime('2012-01-01 05:00:00+03:00'); 21 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
|
H A D | dateformat_formatObject_datetime_variant2.phpt | 13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon 14 echo IntlDateFormatter::formatObject($dt), "\n"; 15 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n"; 16 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n"; 17 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),… 18 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n"; 20 $dt = new DateTime('2012-01-01 05:00:00+03:00'); 21 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
|
H A D | dateformat_formatObject_datetime_variant5.phpt | 13 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon 14 echo IntlDateFormatter::formatObject($dt), "\n"; 15 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n"; 16 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n"; 17 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),… 18 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n"; 20 $dt = new DateTime('2012-01-01 05:00:00+03:00'); 21 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
|
H A D | dateformat_formatObject_datetime_variant3.phpt | 14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon 15 echo IntlDateFormatter::formatObject($dt), "\n"; 16 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n"; 17 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n"; 18 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),… 19 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n"; 21 $dt = new DateTime('2012-01-01 05:00:00+03:00'); 22 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
|
H A D | dateformat_formatObject_datetime_variant4.phpt | 14 $dt = new DateTime('2012-01-01 00:00:00'); //Europe/Lisbon 15 echo IntlDateFormatter::formatObject($dt), "\n"; 16 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n"; 17 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n"; 18 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),… 19 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n"; 21 $dt = new DateTime('2012-01-01 05:00:00+03:00'); 22 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
|
H A D | calendar_toDateTime_basic.phpt | 15 $dt = $cal->toDateTime(); 17 var_dump($dt->format("c"), $dt->getTimeZone()->getName());
|
H A D | timezone_fromDateTimeZone_basic.phpt | 17 $dt = new DateTime('2012-01-01 00:00:00 CET'); 18 $dtz = $dt->getTimeZone(); 26 $dt = new DateTime('2012-01-01 00:00:00 +0340'); 27 $dtz = $dt->getTimeZone();
|