Home
last modified time | relevance | path

Searched refs:DateTime (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/PHP-8.0/ext/date/tests/
H A DDateTime_data-fall-type2-type2.inc24 $end = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2
29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
30 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2
35 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2
44 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2
55 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
60 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
65 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
70 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
74 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2
[all …]
H A DDateTime_constants.phpt2 DateTime constants
7 DATE_ATOM === DateTime::ATOM,
8 DATE_COOKIE === DateTime::COOKIE,
9 DATE_ISO8601 === DateTime::ISO8601,
10 DATE_RFC822 === DateTime::RFC822,
11 DATE_RFC850 === DateTime::RFC850,
12 DATE_RFC1036 === DateTime::RFC1036,
13 DATE_RFC1123 === DateTime::RFC1123,
14 DATE_RFC2822 === DateTime::RFC2822,
16 DATE_RSS === DateTime::RSS,
[all …]
H A DDateTime_data-fall-type2-type3.inc24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3
29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3
46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
51 $end = new DateTime('2010-11-08 19:59:59'); // post, zt3
56 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3
78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
93 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3
110 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
125 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3
142 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
[all …]
H A DDateTime_data-spring-type3-type2.inc28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3
33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3
38 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3
43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
58 $start = new DateTime('2010-03-14 00:10:20'); // st, 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
73 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3
[all …]
H A DDateTime_data-spring-type3-type3.inc22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3
27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3
28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3
32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3
43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
58 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3
[all …]
H A DDateTime_data-spring-type2-type3.inc22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3
27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3
32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
37 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3
42 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3
52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3
57 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3
62 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3
67 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3
87 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3
[all …]
H A Dbug51393.phpt7 $dt = DateTime::createFromFormat('O', '+0800');
10 $dt = DateTime::createFromFormat('P', '+08:00');
13 $dt = DateTime::createFromFormat('O', '-0800');
16 $dt = DateTime::createFromFormat('P', '-08:00');
19 $dt = DateTime::createFromFormat('[O]', '[+0800]');
22 $dt = DateTime::createFromFormat('[P]', '[+08:00]');
25 $dt = DateTime::createFromFormat('[O]', '[-0800]');
31 $dt = DateTime::createFromFormat('O', 'GMT+0800');
34 $dt = DateTime::createFromFormat('P', 'GMT+08:00');
37 $dt = DateTime::createFromFormat('O', 'GMT-0800');
[all …]
H A DDateTime_data-fall-type3-type2.inc29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2
30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
42 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
47 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
67 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
72 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
77 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
[all …]
H A DDateTime_data-spring-type2-type2.inc22 $end = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2
27 $end = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2
28 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2
32 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2
33 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2
43 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2
48 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2
52 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2
53 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2
58 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2
[all …]
H A DDateTime_data-fall-type3-type3.inc24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3
29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3
30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3
46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
68 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
74 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3
78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3
[all …]
H A DDateTime_createFromInterface-001.phpt2 Tests for DateTime::createFromInterface
9 $i = DateTime::createFromInterface( date_create( $current ) );
12 $i = DateTime::createFromInterface( date_create_immutable( $current ) );
17 $i = DateTime::createFromInterface( date_create( $current ) );
25 $i = DateTime::createFromInterface( date_create( $current ) );
32 object(DateTime)#%d (3) {
40 object(DateTime)#%d (3) {
48 object(DateTime)#%d (3) {
56 object(DateTime)#%d (3) {
64 object(DateTime)#%d (3) {
[all …]
H A DDateTime_construct_basic1.phpt2 Test new DateTime() : basic functionality
8 echo "*** Testing new DateTime() : basic functionality ***\n";
10 var_dump( new DateTime('') );
12 var_dump( new DateTime("GMT") );
13 var_dump( new DateTime("2005-07-14 22:30:41") );
14 var_dump( new DateTime("2005-07-14 22:30:41 GMT") );
18 *** Testing new DateTime() : basic functionality ***
19 object(DateTime)#%d (3) {
27 object(DateTime)#%d (3) {
35 object(DateTime)#%d (3) {
[all …]
H A DDateTime_format_basic2.phpt9 $date = new DateTime("2005-07-14 22:30:41");
11 var_dump( $date->format( DateTime::ATOM) ) ;
12 var_dump( $date->format( DateTime::COOKIE) ) ;
13 var_dump( $date->format( DateTime::ISO8601) ) ;
14 var_dump( $date->format( DateTime::RFC822) ) ;
15 var_dump( $date->format( DateTime::RFC850) ) ;
16 var_dump( $date->format( DateTime::RFC1036) ) ;
17 var_dump( $date->format( DateTime::RFC1123) ) ;
19 var_dump( $date->format( DateTime::RFC3339) ) ;
20 var_dump( $date->format( DateTime::RSS) ) ;
[all …]
H A Drfc-datetime_and_daylight_saving_time-type1.phpt2 RFC: DateTime and Daylight Saving Time Transitions (zone type 1)
16 $end = new DateTime('2010-03-14 03:00:00 -0400');
17 $start = new DateTime('2010-03-14 01:59:59 -0500');
21 $end = new DateTime('2010-03-14 04:30:00 -0400');
22 $start = new DateTime('2010-03-13 04:30:00 -0500');
26 $end = new DateTime('2010-03-14 03:30:00 -0400');
27 $start = new DateTime('2010-03-13 04:30:00 -0500');
31 $end = new DateTime('2010-03-14 01:30:00 -0500');
32 $start = new DateTime('2010-03-13 04:30:00 -0500');
36 $end = new DateTime('2010-03-14 01:30:00 -0500');
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt16 $end = new DateTime('2010-03-14 03:00:00');
17 $start = new DateTime('2010-03-14 01:59:59');
21 $end = new DateTime('2010-03-14 04:30:00');
22 $start = new DateTime('2010-03-13 04:30:00');
26 $end = new DateTime('2010-03-14 03:30:00');
27 $start = new DateTime('2010-03-13 04:30:00');
31 $end = new DateTime('2010-03-14 01:30:00');
32 $start = new DateTime('2010-03-13 04:30:00');
36 $end = new DateTime('2010-03-14 01:30:00');
37 $start = new DateTime('2010-03-13 01:30:00');
[all …]
H A Ddate_constants.phpt28 DATE_ATOM == DateTime::ATOM,
29 DATE_COOKIE == DateTime::COOKIE,
30 DATE_ISO8601 == DateTime::ISO8601,
31 DATE_RFC822 == DateTime::RFC822,
32 DATE_RFC850 == DateTime::RFC850,
33 DATE_RFC1036 == DateTime::RFC1036,
34 DATE_RFC1123 == DateTime::RFC1123,
35 DATE_RFC2822 == DateTime::RFC2822,
36 DATE_RFC3339 == DateTime::RFC3339,
37 DATE_RSS == DateTime::RSS,
[all …]
H A Dbug75577.phpt2 Test for bug #75577: DateTime::createFromFormat does not accept 'v' format specifier
7 $d = new DateTime("2018-10-09 09:56:45.412000");
8 var_dump($s = $d->format(DateTime::RFC3339_EXTENDED));
10 $d2 = DateTime::createFromFormat(DateTime::RFC3339_EXTENDED, $s);
15 object(DateTime)#%d (3) {
H A Dbug43452.phpt9 echo date( DateTime::ISO8601, $day ), "\n";
11 echo date( DateTime::ISO8601, $day ), "\n";
13 echo date( DateTime::ISO8601, $day ), "\n";
15 echo date( DateTime::ISO8601, $day ), "\n\n";
19 echo date( DateTime::ISO8601, $day ), "\n";
21 echo date( DateTime::ISO8601, $day ), "\n";
23 echo date( DateTime::ISO8601, $day ), "\n";
31 echo date( DateTime::ISO8601, $day ), "\n";
33 echo date( DateTime::ISO8601, $day ), "\n";
35 echo date( DateTime::ISO8601, $day ), "\n";
[all …]
H A Dbug55397.phpt2 Bug #55397 (comparison of incomplete DateTime causes SIGSEGV)
6 var_dump(unserialize('O:8:"DateTime":0:{}') == new DateTime);
9 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug55397.php:%d
11 #0 [internal function]: DateTime->__wakeup()
12 #1 %sbug55397.php(%d): unserialize('O:8:"DateTime":...')
H A Drfc-datetime_and_daylight_saving_time-type3-bd1.phpt2 RFC: DateTime and Daylight Saving Time Transitions (zone type 3, bd1)
16 $end = new DateTime('2010-11-07 05:30:00');
17 $start = new DateTime('2010-11-06 04:30:00');
21 $end = new DateTime('2010-11-07 04:30:00');
22 $start = new DateTime('2010-11-06 04:30:00');
26 $end = new DateTime('2010-11-07 03:30:00');
27 $start = new DateTime('2010-11-06 04:30:00');
31 $end = new DateTime('2010-11-07 02:30:00');
32 $start = new DateTime('2010-11-06 04:30:00');
36 $end = new DateTime('2010-11-07 01:30:00');
[all …]
H A Drfc-datetime_and_daylight_saving_time-type2.phpt16 $end = new DateTime('2010-03-14 03:00:00 EDT');
17 $start = new DateTime('2010-03-14 01:59:59 EST');
21 $end = new DateTime('2010-03-14 04:30:00 EDT');
22 $start = new DateTime('2010-03-13 04:30:00 EST');
26 $end = new DateTime('2010-03-14 03:30:00 EDT');
27 $start = new DateTime('2010-03-13 04:30:00 EST');
31 $end = new DateTime('2010-03-14 01:30:00 EST');
32 $start = new DateTime('2010-03-13 04:30:00 EST');
36 $end = new DateTime('2010-03-14 01:30:00 EST');
37 $start = new DateTime('2010-03-13 01:30:00 EST');
[all …]
H A DDateTime_clone_basic3.phpt2 Test clone of DateTime objects
8 echo "*** Testing clone on DateTime objects ***\n";
10 echo "\n-- Create a DateTime object --\n";
11 $d1 = new DateTime("2009-02-03 12:34:41 GMT");
29 *** Testing clone on DateTime objects ***
31 -- Create a DateTime object --
32 object(DateTime)#%d (3) {
42 object(DateTime)#%d (5) {
56 object(DateTime)#%d (5) {
70 object(DateTime)#%d (7) {
[all …]
H A Dbug75232.phpt2 Bug #75232: print_r of DateTime creating side-effect
8 $d1 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z');
11 $d2 = DateTime::createFromFormat("Ymd\THis\Z", '20170920T091600Z');
17 Warning: Undefined property: DateTime::$date in %s on line %d
19 DateTime Object
26 Warning: Undefined property: DateTime::$date in %s on line %d
H A Dbug54340.phpt2 Bug #54340 (DateTime::add() method bug)
9 $dt = new DateTime('first day of January 2011');
15 $dt = new DateTime('first day of January 2011');
21 object(DateTime)#2 (3) {
29 object(DateTime)#2 (3) {
37 object(DateTime)#3 (3) {
/PHP-8.0/ext/date/
H A Dphp_date.stub.php52 function date_modify(DateTime $object, string $modifier): DateTime|false {}
54 function date_add(DateTime $object, DateInterval $interval): DateTime {}
56 function date_sub(DateTime $object, DateInterval $interval): DateTime {}
74 function date_timestamp_set(DateTime $object, int $timestamp): DateTime {}
181 * @return DateTime
187 * @return DateTime
199 * @return DateTime
211 * @return DateTime
217 * @return DateTime
223 * @return DateTime
[all …]

Completed in 31 milliseconds

12345678910>>...12