/php-src/ext/date/tests/ |
H A D | DatePeriod_getter.phpt | 13 var_dump($period->getStartDate()->format('Y-m-d H:i:s')); 16 var_dump($period->getEndDate()->format('Y-m-d H:i:s')); 19 var_dump($period->getDateInterval()->format('%R%y-%m-%d-%h-%i-%s'));
|
H A D | DatePeriod_no_advance_on_valid.phpt | 13 echo $item->format('Y-m-d') . "\n"; 20 echo $item->format('Y-m-d') . "\n"; 29 echo $item->format('Y-m-d') . "\n"; 36 echo $item->format('Y-m-d') . "\n";
|
H A D | DatePeriod_properties1.phpt | 29 var_dump($period->interval->format("%R%d"));
|
H A D | DatePeriod_serialize-002.phpt | 28 echo $d->format(DateTime::ISO8601), "\n";
|
H A D | DatePeriod_serialize-003.phpt | 28 echo $d->format(DateTime::ISO8601), "\n";
|
H A D | DatePeriod_serialize-004.phpt | 16 echo $d->format(DateTime::ISO8601), "\n"; 33 echo $d->format(DateTime::ISO8601), "\n";
|
H A D | DateTimeImmutable_modify_invalid_format.phpt | 2 DateTimeImmutable::modify() with invalid format
|
H A D | DateTimeImmutable_uninitialised_exceptions.phpt | 32 check(fn() => $mdti->format(DateTime::ISO8601));
|
H A D | DateTime_clone_basic1.phpt | 20 echo "Original: " . $orig->format("H:i:s") . "\n"; 21 echo "Clone: " . $clone->format("H:i:s") . "\n";
|
H A D | DateTime_clone_basic4.phpt | 23 var_dump( $d1_clone->format( "m.d.y") );
|
H A D | DateTime_construct-dst-overlap.phpt | 11 echo $d->format('P') . "\n"; 16 echo $d->format('P') . "\n"; 21 echo $d->format('P') . "\n"; 26 echo $d->format('P') . "\n";
|
H A D | DateTime_createFromImmutable-001.phpt | 15 var_dump( $i->format('Y-m-d H:i:s') === $current );
|
H A D | DateTime_createFromImmutable-002.phpt | 17 var_dump( $i->format('Y-m-d H:i:s') === $current );
|
H A D | DateTime_extends_basic1.phpt | 14 public static $format = "F j, Y, g:i:s a"; 18 return parent::format(self::$format);
|
H A D | DateTime_extends_basic2.phpt | 24 echo $d->format("F j, Y, g:i:s a") . "\n";
|
H A D | DateTime_extends_basic3.phpt | 2 Test DateTime class inheritance : with user space format() method 8 echo "*** Testing new DateTime() : with user format() method ***\n"; 12 public function format($format = "F j, Y, g:i:s a"): string 14 return parent::format($format); 19 echo $d->format() . "\n"; 23 *** Testing new DateTime() : with user format() method ***
|
H A D | DateTime_fix_createFromFormat.phpt | 17 // Create a DateTime object from format 20 echo "Format method: " . $orig->format("D., M. j, Y g:iA") . "\n"; 21 echo "createFromFormat method: " . $fromFormat->format("D., M. j, Y g:iA") . "\n";
|
H A D | DateTime_format_basic1.phpt | 2 Test DateTime::format() function : basic functionality 11 var_dump( $date->format( "F j, Y, g:i a") ); 12 var_dump( $date->format( "m.d.y") ); 13 var_dump( $date->format( "j, n, Y") ); 14 var_dump( $date->format( "Ymd") ); 15 var_dump( $date->format( 'h-i-s, j-m-y, it is w Day') ); 16 var_dump( $date->format( '\i\t \i\s \t\h\e jS \d\a\y.') ); 17 var_dump( $date->format( "D M j G:i:s T Y") ); 18 var_dump( $date->format( 'H:m:s \m \i\s\ \m\o\n\t\h') ); 19 var_dump( $date->format( "H:i:s") ); [all …]
|
H A D | DateTime_format_basic2.phpt | 11 var_dump($date->format(DateTime::ATOM)); 12 var_dump($date->format(DateTime::COOKIE)); 13 var_dump($date->format(DateTime::ISO8601)); 15 var_dump($date->format(DateTime::RFC822)); 16 var_dump($date->format(DateTime::RFC850)); 17 var_dump($date->format(DateTime::RFC1036)); 18 var_dump($date->format(DateTime::RFC1123)); 19 var_dump($date->format(DateTime::RFC7231)); 20 var_dump($date->format(DateTime::RFC2822)); 23 var_dump($date->format(DateTime::RSS)); [all …]
|
H A D | DateTime_modify_basic1.phpt | 14 echo "After modification 1: " . $datetime->format("D, d M Y") . "\n"; 17 echo "After modification 2: " . $datetime->format("D, d M Y H:i:s") . "\n"; 20 echo "After modification 3: " . $datetime->format("D, d M Y") . "\n"; 23 echo "After modification 4: " . $datetime->format("D, d M Y") . "\n";
|
H A D | DateTime_modify_invalid_format.phpt | 2 DateTime::modify() with empty string as format
|
H A D | DateTime_serialize.phpt | 16 var_dump( $date2->format( "F j, Y, g:i a") );
|
H A D | DateTime_setDate_basic1.phpt | 12 echo $datetime->format(DATE_RFC2822) . "\n"; 16 echo $datetime->format(DATE_RFC2822) . "\n";
|
H A D | DateTime_setISODate_basic1.phpt | 15 echo "Week 40 of 2009 is in \"" . $datetime->format("F") . "\"\n"; 19 echo "Week 30 day 3 of 2009 is \"" . $datetime->format("D M j") . "\"\n"; 23 echo "..same day last year was \"" . $datetime->format("D M j") . "\"\n";
|
H A D | DateTime_setTime_basic1.phpt | 13 echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n"; 16 echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n"; 19 echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n"; 22 echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n"; 25 echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n"; 28 echo "After modification5 " . $datetime ->format(DATE_RFC2822) . "\n";
|