Home
last modified time | relevance | path

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

12345678910>>...16

/php-src/ext/date/tests/
H A DDateTime_constants.phpt2 DateTime constants
7 DATE_ATOM === DateTime::ATOM,
8 DATE_COOKIE === DateTime::COOKIE,
9 DATE_ISO8601 === DateTime::ISO8601,
11 DATE_RFC822 === DateTime::RFC822,
12 DATE_RFC850 === DateTime::RFC850,
13 DATE_RFC1036 === DateTime::RFC1036,
14 DATE_RFC1123 === DateTime::RFC1123,
15 DATE_RFC7231 === DateTime::RFC7231,
19 DATE_RSS === DateTime::RSS,
[all …]
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_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-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 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-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 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-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_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));
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));
23 var_dump($date->format(DateTime::RSS));
[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 DcreateFromTimestamp.phpt62 DateTime::createFromTimestamp(1696883232): object(DateTime)#%d (3) {
78 DateTime::createFromTimestamp(-1696883232): object(DateTime)#%d (3) {
94 DateTime::createFromTimestamp(1696883232.013981): object(DateTime)#%d (3) {
110 DateTime::createFromTimestamp(-1696883232.013981): object(DateTime)#%d (3) {
126 DateTime::createFromTimestamp(0.123456): object(DateTime)#%d (3) {
142 DateTime::createFromTimestamp(-0.123456): object(DateTime)#%d (3) {
158 DateTime::createFromTimestamp(0): object(DateTime)#%d (3) {
174 DateTime::createFromTimestamp(0.0): object(DateTime)#%d (3) {
190 DateTime::createFromTimestamp(-0.0): object(DateTime)#%d (3) {
216 DateTime::createFromTimestamp(1599828571.235628): object(DateTime)#%d (3) {
[all …]
H A Drfc-datetime_and_daylight_saving_time-type1.phpt2 RFC: DateTime and Daylight Saving Time Transitions (zone type 1)
15 $end = new DateTime('2010-03-14 03:00:00 -0400');
16 $start = new DateTime('2010-03-14 01:59:59 -0500');
20 $end = new DateTime('2010-03-14 04:30:00 -0400');
21 $start = new DateTime('2010-03-13 04:30:00 -0500');
25 $end = new DateTime('2010-03-14 03:30:00 -0400');
26 $start = new DateTime('2010-03-13 04:30:00 -0500');
30 $end = new DateTime('2010-03-14 01:30:00 -0500');
31 $start = new DateTime('2010-03-13 04:30:00 -0500');
35 $end = new DateTime('2010-03-14 01:30:00 -0500');
[all …]
H A DcreateFromTimestamp_32bit.phpt2 Tests for DateTime[Immutable]::createFromTimestamp 32bit variant
24 echo 'DateTime::createFromTimestamp(' . var_export($ts, true) . '): ';
26 var_dump(DateTime::createFromTimestamp($ts));
41 DateTime::createFromTimestamp(2147483647): object(DateTime)#%d (3) {
57 DateTime::createFromTimestamp(-2147483647-1): object(DateTime)#%d (3) {
73 DateTime::createFromTimestamp(2147483647.5): object(DateTime)#%d (3) {
89 DateTime::createFromTimestamp(-2147483647.5): object(DateTime)#%d (3) {
105 DateTime::createFromTimestamp(2147483646.5): object(DateTime)#%d (3) {
121 DateTime::createFromTimestamp(-2147483648.5): DateRangeError: DateTime::createFromTimestamp(): Argu…
123 DateTime::createFromTimestamp(2147484671.0): DateRangeError: DateTime::createFromTimestamp(): Argum…
[all …]
H A Ddate_constants.phpt31 DATE_ATOM == DateTime::ATOM,
32 DATE_COOKIE == DateTime::COOKIE,
33 DATE_ISO8601 == DateTime::ISO8601,
35 DATE_RFC822 == DateTime::RFC822,
36 DATE_RFC850 == DateTime::RFC850,
37 DATE_RFC1036 == DateTime::RFC1036,
38 DATE_RFC1123 == DateTime::RFC1123,
39 DATE_RFC2822 == DateTime::RFC2822,
40 DATE_RFC7231 == DateTime::RFC7231,
43 DATE_RSS == DateTime::RSS,
[all …]
H A DDateTime_wakeup_exception.phpt2 DateTime invalid serialization data (wakeup)
6 …'O:8:"DateTime":3:{s:4:"date";s:26:"2023-01-13 14:48:01.705516";s:13:"timezone_type";i:3;s:8:"time…
7 'O:8:"DateTime":3:{s:4:"date";i:3;s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}',
8 …'O:8:"DateTime":3:{s:4:"date";s:26:"2023-01-13 14:48:01.705516";s:13:"timezone_type";s:1:"X";s:8:"…
9 …'O:8:"DateTime":3:{s:4:"date";s:26:"2023-01-13 14:48:01.705516";s:13:"timezone_type";i:4;s:8:"time…
10 …'O:8:"DateTime":3:{s:4:"date";s:26:"2023-01-13 14:48:01.705516";s:13:"timezone_type";i:3;s:8:"time…
12 …'O:8:"DateTime":3:{s:4:"date";s:26:"2023-01-13 14:48:01.705516";s:13:"timezone_type";i:3;s:8:"time…
27 Error: Invalid serialization data for DateTime object
28 Error: Invalid serialization data for DateTime object
29 Error: Invalid serialization data for DateTime object
[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) {
46 object(DateTime)#%d (5) {
60 object(DateTime)#%d (5) {
78 object(DateTime)#%d (7) {
[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 DDateTime_uninitialised_exceptions.phpt2 DateTime uninitialised exceptions
7 class MyDateTime extends DateTime
24 $dt = new DateTime();
28 check(fn() => DateTime::createFromInterface($mdt));
31 check(fn() => date_format($mdt, DateTime::ISO8601));
32 check(fn() => $mdt->format(DateTime::ISO8601));
61 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
62 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
63 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
64 DateObjectError: Object of type MyDateTime (inheriting DateTime) has not been correctly initialized…
[all …]
H A DDateTime_set_state_exception.phpt2 DateTime invalid serialization data
23 $d = DateTime::__set_state( $propertySet );
33 Error: Invalid serialization data for DateTime object
34 Error: Invalid serialization data for DateTime object
35 Error: Invalid serialization data for DateTime object
36 Error: Invalid serialization data for DateTime object
37 Error: Invalid serialization data for DateTime object
38 Error: Invalid serialization data for DateTime object
39 Error: Invalid serialization data for DateTime object
40 Error: Invalid serialization data for DateTime object
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 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 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) {

Completed in 58 milliseconds

12345678910>>...16