Home
last modified time | relevance | path

Searched refs:format (Results 51 – 75 of 771) sorted by path

12345678910>>...31

/php-src/ext/date/tests/
H A DDatePeriod_getter.phpt13 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 DDatePeriod_no_advance_on_valid.phpt13 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 DDatePeriod_properties1.phpt29 var_dump($period->interval->format("%R%d"));
H A DDatePeriod_serialize-002.phpt28 echo $d->format(DateTime::ISO8601), "\n";
H A DDatePeriod_serialize-003.phpt28 echo $d->format(DateTime::ISO8601), "\n";
H A DDatePeriod_serialize-004.phpt16 echo $d->format(DateTime::ISO8601), "\n";
33 echo $d->format(DateTime::ISO8601), "\n";
H A DDateTimeImmutable_modify_invalid_format.phpt2 DateTimeImmutable::modify() with invalid format
H A DDateTimeImmutable_uninitialised_exceptions.phpt32 check(fn() => $mdti->format(DateTime::ISO8601));
H A DDateTime_clone_basic1.phpt20 echo "Original: " . $orig->format("H:i:s") . "\n";
21 echo "Clone: " . $clone->format("H:i:s") . "\n";
H A DDateTime_clone_basic4.phpt23 var_dump( $d1_clone->format( "m.d.y") );
H A DDateTime_construct-dst-overlap.phpt11 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 DDateTime_createFromImmutable-001.phpt15 var_dump( $i->format('Y-m-d H:i:s') === $current );
H A DDateTime_createFromImmutable-002.phpt17 var_dump( $i->format('Y-m-d H:i:s') === $current );
H A DDateTime_extends_basic1.phpt14 public static $format = "F j, Y, g:i:s a";
18 return parent::format(self::$format);
H A DDateTime_extends_basic2.phpt24 echo $d->format("F j, Y, g:i:s a") . "\n";
H A DDateTime_extends_basic3.phpt2 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 DDateTime_fix_createFromFormat.phpt17 // 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 DDateTime_format_basic1.phpt2 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 DDateTime_format_basic2.phpt11 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 DDateTime_modify_basic1.phpt14 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 DDateTime_modify_invalid_format.phpt2 DateTime::modify() with empty string as format
H A DDateTime_serialize.phpt16 var_dump( $date2->format( "F j, Y, g:i a") );
H A DDateTime_setDate_basic1.phpt12 echo $datetime->format(DATE_RFC2822) . "\n";
16 echo $datetime->format(DATE_RFC2822) . "\n";
H A DDateTime_setISODate_basic1.phpt15 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 DDateTime_setTime_basic1.phpt13 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";

Completed in 36 milliseconds

12345678910>>...31