From 12ceab222e35ce9487cd3a841c8c3796ce042377 Mon Sep 17 00:00:00 2001 From: Daniel Convissor Date: Wed, 13 Jul 2011 16:22:58 +0000 Subject: [PATCH] Have test for add/sub/diff one second during DST/ST transition. --- .../tests/DateTime_add-fall-type2-type2.phpt | 2 ++ .../tests/DateTime_add-fall-type2-type3.phpt | 2 ++ .../tests/DateTime_add-fall-type3-type2.phpt | 2 ++ .../tests/DateTime_add-fall-type3-type3.phpt | 2 ++ .../tests/DateTime_data-fall-type2-type2.inc | 12 ++++++++++++ .../tests/DateTime_data-fall-type2-type3.inc | 14 ++++++++++++++ .../tests/DateTime_data-fall-type3-type2.inc | 14 ++++++++++++++ .../tests/DateTime_data-fall-type3-type3.inc | 16 ++++++++++++++++ .../tests/DateTime_days-fall-type2-type2.phpt | 2 ++ .../tests/DateTime_days-fall-type2-type3.phpt | 2 ++ .../tests/DateTime_days-fall-type3-type2.phpt | 2 ++ .../tests/DateTime_days-fall-type3-type3.phpt | 2 ++ .../tests/DateTime_diff-fall-type2-type2.phpt | 2 ++ .../tests/DateTime_diff-fall-type2-type3.phpt | 2 ++ .../tests/DateTime_diff-fall-type3-type2.phpt | 2 ++ .../tests/DateTime_diff-fall-type3-type3.phpt | 2 ++ .../tests/DateTime_sub-fall-type2-type2.phpt | 2 ++ .../tests/DateTime_sub-fall-type2-type3.phpt | 2 ++ .../tests/DateTime_sub-fall-type3-type2.phpt | 2 ++ .../tests/DateTime_sub-fall-type3-type3.phpt | 2 ++ 20 files changed, 88 insertions(+) diff --git a/ext/date/tests/DateTime_add-fall-type2-type2.phpt b/ext/date/tests/DateTime_add-fall-type2-type2.phpt index 0801a042c9..82cc81c9eb 100644 --- a/ext/date/tests/DateTime_add-fall-type2-type2.phpt +++ b/ext/date/tests/DateTime_add-fall-type2-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type2_redodt: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT test_time_fall_type2_post_type2_redost: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT18H45M15S = **2010-11-07 01:14:44 EST** test_time_fall_type2_post_type2_st: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT16H43M4S = **2010-11-07 03:16:55 EST** test_time_fall_type2_post_type2_post: ADD: 2010-11-08 18:57:55 EST + P+0Y0M0DT1H2M4S = **2010-11-08 19:59:59 EST** +test_time_fall_type2_dtsec_type2_stsec: ADD: 2010-11-07 01:59:59 EDT + P+0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** +test_time_fall_type2_stsec_type2_dtsec: ADD: 2010-11-07 01:00:00 EST + P-0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** diff --git a/ext/date/tests/DateTime_add-fall-type2-type3.phpt b/ext/date/tests/DateTime_add-fall-type2-type3.phpt index a342e86c4a..077dd565d1 100644 --- a/ext/date/tests/DateTime_add-fall-type2-type3.phpt +++ b/ext/date/tests/DateTime_add-fall-type2-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type3_redodt: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT test_time_fall_type2_post_type3_redost: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT18H45M15S = **2010-11-07 01:14:44 EST** test_time_fall_type2_post_type3_st: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT16H43M4S = **2010-11-07 03:16:55 EST** test_time_fall_type2_post_type3_post: ADD: 2010-11-08 18:57:55 EST + P+0Y0M0DT1H2M4S = **2010-11-08 19:59:59 EST** +test_time_fall_type2_dtsec_type3_stsec: ADD: 2010-11-07 01:59:59 EDT + P+0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** +test_time_fall_type2_stsec_type3_dtsec: ADD: 2010-11-07 01:00:00 EST + P-0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** diff --git a/ext/date/tests/DateTime_add-fall-type3-type2.phpt b/ext/date/tests/DateTime_add-fall-type3-type2.phpt index 289e303b16..0588cbf283 100644 --- a/ext/date/tests/DateTime_add-fall-type3-type2.phpt +++ b/ext/date/tests/DateTime_add-fall-type3-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type2_redodt: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT test_time_fall_type3_post_type2_redost: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT18H45M15S = **2010-11-07 01:14:44 EST** test_time_fall_type3_post_type2_st: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT16H43M4S = **2010-11-07 03:16:55 EST** test_time_fall_type3_post_type2_post: ADD: 2010-11-08 18:57:55 EST + P+0Y0M0DT1H2M4S = **2010-11-08 19:59:59 EST** +test_time_fall_type3_dtsec_type2_stsec: ADD: 2010-11-07 01:59:59 EDT + P+0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** +test_time_fall_type3_stsec_type2_dtsec: ADD: 2010-11-07 01:00:00 EST + P-0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** diff --git a/ext/date/tests/DateTime_add-fall-type3-type3.phpt b/ext/date/tests/DateTime_add-fall-type3-type3.phpt index 517f4abaf8..24315529a0 100644 --- a/ext/date/tests/DateTime_add-fall-type3-type3.phpt +++ b/ext/date/tests/DateTime_add-fall-type3-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type3_redodt: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT test_time_fall_type3_post_type3_redost: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT18H45M15S = **2010-11-07 01:14:44 EST** test_time_fall_type3_post_type3_st: ADD: 2010-11-08 19:59:59 EST + P-0Y0M1DT16H43M4S = **2010-11-07 03:16:55 EST** test_time_fall_type3_post_type3_post: ADD: 2010-11-08 18:57:55 EST + P+0Y0M0DT1H2M4S = **2010-11-08 19:59:59 EST** +test_time_fall_type3_dtsec_type3_stsec: ADD: 2010-11-07 01:59:59 EDT + P+0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** +test_time_fall_type3_stsec_type3_dtsec: ADD: 2010-11-07 01:00:00 EST + P-0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** diff --git a/ext/date/tests/DateTime_data-fall-type2-type2.inc b/ext/date/tests/DateTime_data-fall-type2-type2.inc index 748590e634..faf8f43759 100644 --- a/ext/date/tests/DateTime_data-fall-type2-type2.inc +++ b/ext/date/tests/DateTime_data-fall-type2-type2.inc @@ -17,6 +17,8 @@ date_default_timezone_set('America/New_York'); * + redost: standard time in the redo period 2010-11-07 01:14:44 EST * + st: standard time on the transition day 2010-11-07 03:16:55 EST * + post: the day after the transition day 2010-11-08 19:59:59 EST + * + dtsec: daylight time 1 sec before change 2010-11-07 01:59:59 EDT + * + stsec: standard time first secodn 2010-11-07 01:00:00 EST */ echo "test_time_fall_type2_prev_type2_prev: "; $end = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 @@ -197,3 +199,13 @@ echo "test_time_fall_type2_post_type2_post: "; $end = new DateTime('2010-11-08 19:59:59 EST'); // post, zt2 $start = new DateTime('2010-11-08 18:57:55 EST'); // sp post, zt2 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0); + +echo "test_time_fall_type2_dtsec_type2_stsec: "; +$end = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$start = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0); + +echo "test_time_fall_type2_stsec_type2_dtsec: "; +$end = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$start = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0); diff --git a/ext/date/tests/DateTime_data-fall-type2-type3.inc b/ext/date/tests/DateTime_data-fall-type2-type3.inc index 368934c98f..c135dae2d6 100644 --- a/ext/date/tests/DateTime_data-fall-type2-type3.inc +++ b/ext/date/tests/DateTime_data-fall-type2-type3.inc @@ -17,6 +17,8 @@ date_default_timezone_set('America/New_York'); * + redost: standard time in the redo period 2010-11-07 01:14:44 EST * + st: standard time on the transition day 2010-11-07 03:16:55 EST * + post: the day after the transition day 2010-11-08 19:59:59 EST + * + dtsec: daylight time 1 sec before change 2010-11-07 01:59:59 EDT + * + stsec: standard time first secodn 2010-11-07 01:00:00 EST */ echo "test_time_fall_type2_prev_type3_prev: "; $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 @@ -209,3 +211,15 @@ echo "test_time_fall_type2_post_type3_post: "; $end = new DateTime('2010-11-08 19:59:59'); // post, zt3 $start = new DateTime('2010-11-08 18:57:55 EST'); // sp post, zt2 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0); + +echo "test_time_fall_type2_dtsec_type3_stsec: "; +$end = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +$start = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0); + +echo "test_time_fall_type2_stsec_type3_dtsec: "; +$end = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +$start = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0); diff --git a/ext/date/tests/DateTime_data-fall-type3-type2.inc b/ext/date/tests/DateTime_data-fall-type3-type2.inc index 467139bcc4..38917fd5ec 100644 --- a/ext/date/tests/DateTime_data-fall-type3-type2.inc +++ b/ext/date/tests/DateTime_data-fall-type3-type2.inc @@ -17,6 +17,8 @@ date_default_timezone_set('America/New_York'); * + redost: standard time in the redo period 2010-11-07 01:14:44 EST * + st: standard time on the transition day 2010-11-07 03:16:55 EST * + post: the day after the transition day 2010-11-08 19:59:59 EST + * + dtsec: daylight time 1 sec before change 2010-11-07 01:59:59 EDT + * + stsec: standard time first secodn 2010-11-07 01:00:00 EST */ echo "test_time_fall_type3_prev_type2_prev: "; $end = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 @@ -211,3 +213,15 @@ echo "test_time_fall_type3_post_type2_post: "; $end = new DateTime('2010-11-08 19:59:59 EST'); // post, zt2 $start = new DateTime('2010-11-08 18:57:55'); // sp post, zt3 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0); + +echo "test_time_fall_type3_dtsec_type2_stsec: "; +$end = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$start = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0); + +echo "test_time_fall_type3_stsec_type2_dtsec: "; +$end = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$start = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0); diff --git a/ext/date/tests/DateTime_data-fall-type3-type3.inc b/ext/date/tests/DateTime_data-fall-type3-type3.inc index c8ebd59d60..53a9740876 100644 --- a/ext/date/tests/DateTime_data-fall-type3-type3.inc +++ b/ext/date/tests/DateTime_data-fall-type3-type3.inc @@ -17,6 +17,8 @@ date_default_timezone_set('America/New_York'); * + redost: standard time in the redo period 2010-11-07 01:14:44 EST, + TZ * + st: standard time on the transition day 2010-11-07 03:16:55 * + post: the day after the transition day 2010-11-08 19:59:59 + * + dtsec: daylight time 1 sec before change 2010-11-07 01:59:59 EDT, + TZ + * + stsec: standard time first secodn 2010-11-07 01:00:00 EST, + TZ */ echo "test_time_fall_type3_prev_type3_prev: "; $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 @@ -221,3 +223,17 @@ echo "test_time_fall_type3_post_type3_post: "; $end = new DateTime('2010-11-08 19:59:59'); // post, zt3 $start = new DateTime('2010-11-08 18:57:55'); // sp post, zt3 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0); + +echo "test_time_fall_type3_dtsec_type3_stsec: "; +$end = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +$start = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0); + +echo "test_time_fall_type3_stsec_type3_dtsec: "; +$end = new DateTime('2010-11-07 01:59:59 EDT'); // dtsec, zt2 +$end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +$start = new DateTime('2010-11-07 01:00:00 EST'); // stsec, zt2 +$start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 +examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0); diff --git a/ext/date/tests/DateTime_days-fall-type2-type2.phpt b/ext/date/tests/DateTime_days-fall-type2-type2.phpt index c71d8c2bc4..3af156c761 100644 --- a/ext/date/tests/DateTime_days-fall-type2-type2.phpt +++ b/ext/date/tests/DateTime_days-fall-type2-type2.phpt @@ -47,3 +47,5 @@ test_time_fall_type2_post_type2_redodt: DAYS: **1** test_time_fall_type2_post_type2_redost: DAYS: **1** test_time_fall_type2_post_type2_st: DAYS: **1** test_time_fall_type2_post_type2_post: DAYS: **0** +test_time_fall_type2_dtsec_type2_stsec: DAYS: **0** +test_time_fall_type2_stsec_type2_dtsec: DAYS: **0** diff --git a/ext/date/tests/DateTime_days-fall-type2-type3.phpt b/ext/date/tests/DateTime_days-fall-type2-type3.phpt index 548c1bfbca..8a4296b760 100644 --- a/ext/date/tests/DateTime_days-fall-type2-type3.phpt +++ b/ext/date/tests/DateTime_days-fall-type2-type3.phpt @@ -47,3 +47,5 @@ test_time_fall_type2_post_type3_redodt: DAYS: **1** test_time_fall_type2_post_type3_redost: DAYS: **1** test_time_fall_type2_post_type3_st: DAYS: **1** test_time_fall_type2_post_type3_post: DAYS: **0** +test_time_fall_type2_dtsec_type3_stsec: DAYS: **0** +test_time_fall_type2_stsec_type3_dtsec: DAYS: **0** diff --git a/ext/date/tests/DateTime_days-fall-type3-type2.phpt b/ext/date/tests/DateTime_days-fall-type3-type2.phpt index 053a3541e9..d5456036c2 100644 --- a/ext/date/tests/DateTime_days-fall-type3-type2.phpt +++ b/ext/date/tests/DateTime_days-fall-type3-type2.phpt @@ -47,3 +47,5 @@ test_time_fall_type3_post_type2_redodt: DAYS: **1** test_time_fall_type3_post_type2_redost: DAYS: **1** test_time_fall_type3_post_type2_st: DAYS: **1** test_time_fall_type3_post_type2_post: DAYS: **0** +test_time_fall_type3_dtsec_type2_stsec: DAYS: **0** +test_time_fall_type3_stsec_type2_dtsec: DAYS: **0** diff --git a/ext/date/tests/DateTime_days-fall-type3-type3.phpt b/ext/date/tests/DateTime_days-fall-type3-type3.phpt index 9f80bd6878..38e4ef50f5 100644 --- a/ext/date/tests/DateTime_days-fall-type3-type3.phpt +++ b/ext/date/tests/DateTime_days-fall-type3-type3.phpt @@ -47,3 +47,5 @@ test_time_fall_type3_post_type3_redodt: DAYS: **1** test_time_fall_type3_post_type3_redost: DAYS: **1** test_time_fall_type3_post_type3_st: DAYS: **1** test_time_fall_type3_post_type3_post: DAYS: **0** +test_time_fall_type3_dtsec_type3_stsec: DAYS: **0** +test_time_fall_type3_stsec_type3_dtsec: DAYS: **0** diff --git a/ext/date/tests/DateTime_diff-fall-type2-type2.phpt b/ext/date/tests/DateTime_diff-fall-type2-type2.phpt index 276d84892d..3e7cf7dbf2 100644 --- a/ext/date/tests/DateTime_diff-fall-type2-type2.phpt +++ b/ext/date/tests/DateTime_diff-fall-type2-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type2_redodt: DIFF: 2010-11-07 01:12:33 EDT - 2010-11- test_time_fall_type2_post_type2_redost: DIFF: 2010-11-07 01:14:44 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT18H45M15S** test_time_fall_type2_post_type2_st: DIFF: 2010-11-07 03:16:55 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT16H43M4S** test_time_fall_type2_post_type2_post: DIFF: 2010-11-08 19:59:59 EST - 2010-11-08 18:57:55 EST = **P+0Y0M0DT1H2M4S** +test_time_fall_type2_dtsec_type2_stsec: DIFF: 2010-11-07 01:00:00 EST - 2010-11-07 01:59:59 EDT = **P+0Y0M0DT0H0M1S** +test_time_fall_type2_stsec_type2_dtsec: DIFF: 2010-11-07 01:59:59 EDT - 2010-11-07 01:00:00 EST = **P-0Y0M0DT0H0M1S** diff --git a/ext/date/tests/DateTime_diff-fall-type2-type3.phpt b/ext/date/tests/DateTime_diff-fall-type2-type3.phpt index b06c787d06..ec790f02ec 100644 --- a/ext/date/tests/DateTime_diff-fall-type2-type3.phpt +++ b/ext/date/tests/DateTime_diff-fall-type2-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type3_redodt: DIFF: 2010-11-07 01:12:33 EDT - 2010-11- test_time_fall_type2_post_type3_redost: DIFF: 2010-11-07 01:14:44 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT18H45M15S** test_time_fall_type2_post_type3_st: DIFF: 2010-11-07 03:16:55 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT16H43M4S** test_time_fall_type2_post_type3_post: DIFF: 2010-11-08 19:59:59 EST - 2010-11-08 18:57:55 EST = **P+0Y0M0DT1H2M4S** +test_time_fall_type2_dtsec_type3_stsec: DIFF: 2010-11-07 01:00:00 EST - 2010-11-07 01:59:59 EDT = **P+0Y0M0DT0H0M1S** +test_time_fall_type2_stsec_type3_dtsec: DIFF: 2010-11-07 01:59:59 EDT - 2010-11-07 01:00:00 EST = **P-0Y0M0DT0H0M1S** diff --git a/ext/date/tests/DateTime_diff-fall-type3-type2.phpt b/ext/date/tests/DateTime_diff-fall-type3-type2.phpt index 58d72808b8..c9f268ff97 100644 --- a/ext/date/tests/DateTime_diff-fall-type3-type2.phpt +++ b/ext/date/tests/DateTime_diff-fall-type3-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type2_redodt: DIFF: 2010-11-07 01:12:33 EDT - 2010-11- test_time_fall_type3_post_type2_redost: DIFF: 2010-11-07 01:14:44 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT18H45M15S** test_time_fall_type3_post_type2_st: DIFF: 2010-11-07 03:16:55 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT16H43M4S** test_time_fall_type3_post_type2_post: DIFF: 2010-11-08 19:59:59 EST - 2010-11-08 18:57:55 EST = **P+0Y0M0DT1H2M4S** +test_time_fall_type3_dtsec_type2_stsec: DIFF: 2010-11-07 01:00:00 EST - 2010-11-07 01:59:59 EDT = **P+0Y0M0DT0H0M1S** +test_time_fall_type3_stsec_type2_dtsec: DIFF: 2010-11-07 01:59:59 EDT - 2010-11-07 01:00:00 EST = **P-0Y0M0DT0H0M1S** diff --git a/ext/date/tests/DateTime_diff-fall-type3-type3.phpt b/ext/date/tests/DateTime_diff-fall-type3-type3.phpt index d8313b78fc..bf25fef620 100644 --- a/ext/date/tests/DateTime_diff-fall-type3-type3.phpt +++ b/ext/date/tests/DateTime_diff-fall-type3-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type3_redodt: DIFF: 2010-11-07 01:12:33 EDT - 2010-11- test_time_fall_type3_post_type3_redost: DIFF: 2010-11-07 01:14:44 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT18H45M15S** test_time_fall_type3_post_type3_st: DIFF: 2010-11-07 03:16:55 EST - 2010-11-08 19:59:59 EST = **P-0Y0M1DT16H43M4S** test_time_fall_type3_post_type3_post: DIFF: 2010-11-08 19:59:59 EST - 2010-11-08 18:57:55 EST = **P+0Y0M0DT1H2M4S** +test_time_fall_type3_dtsec_type3_stsec: DIFF: 2010-11-07 01:00:00 EST - 2010-11-07 01:59:59 EDT = **P+0Y0M0DT0H0M1S** +test_time_fall_type3_stsec_type3_dtsec: DIFF: 2010-11-07 01:59:59 EDT - 2010-11-07 01:00:00 EST = **P-0Y0M0DT0H0M1S** diff --git a/ext/date/tests/DateTime_sub-fall-type2-type2.phpt b/ext/date/tests/DateTime_sub-fall-type2-type2.phpt index ac1147f78e..3138e1cd84 100644 --- a/ext/date/tests/DateTime_sub-fall-type2-type2.phpt +++ b/ext/date/tests/DateTime_sub-fall-type2-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type2_redodt: SUB: 2010-11-07 01:12:33 EDT - P-0Y0M1DT test_time_fall_type2_post_type2_redost: SUB: 2010-11-07 01:14:44 EST - P-0Y0M1DT18H45M15S = **2010-11-08 19:59:59 EST** test_time_fall_type2_post_type2_st: SUB: 2010-11-07 03:16:55 EST - P-0Y0M1DT16H43M4S = **2010-11-08 19:59:59 EST** test_time_fall_type2_post_type2_post: SUB: 2010-11-08 19:59:59 EST - P+0Y0M0DT1H2M4S = **2010-11-08 18:57:55 EST** +test_time_fall_type2_dtsec_type2_stsec: SUB: 2010-11-07 01:00:00 EST - P+0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** +test_time_fall_type2_stsec_type2_dtsec: SUB: 2010-11-07 01:59:59 EDT - P-0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** diff --git a/ext/date/tests/DateTime_sub-fall-type2-type3.phpt b/ext/date/tests/DateTime_sub-fall-type2-type3.phpt index f2fad2c9eb..6c2a9e03da 100644 --- a/ext/date/tests/DateTime_sub-fall-type2-type3.phpt +++ b/ext/date/tests/DateTime_sub-fall-type2-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type2_post_type3_redodt: SUB: 2010-11-07 01:12:33 EDT - P-0Y0M1DT test_time_fall_type2_post_type3_redost: SUB: 2010-11-07 01:14:44 EST - P-0Y0M1DT18H45M15S = **2010-11-08 19:59:59 EST** test_time_fall_type2_post_type3_st: SUB: 2010-11-07 03:16:55 EST - P-0Y0M1DT16H43M4S = **2010-11-08 19:59:59 EST** test_time_fall_type2_post_type3_post: SUB: 2010-11-08 19:59:59 EST - P+0Y0M0DT1H2M4S = **2010-11-08 18:57:55 EST** +test_time_fall_type2_dtsec_type3_stsec: SUB: 2010-11-07 01:00:00 EST - P+0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** +test_time_fall_type2_stsec_type3_dtsec: SUB: 2010-11-07 01:59:59 EDT - P-0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** diff --git a/ext/date/tests/DateTime_sub-fall-type3-type2.phpt b/ext/date/tests/DateTime_sub-fall-type3-type2.phpt index 10a35c4af2..e545ea5e25 100644 --- a/ext/date/tests/DateTime_sub-fall-type3-type2.phpt +++ b/ext/date/tests/DateTime_sub-fall-type3-type2.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type2_redodt: SUB: 2010-11-07 01:12:33 EDT - P-0Y0M1DT test_time_fall_type3_post_type2_redost: SUB: 2010-11-07 01:14:44 EST - P-0Y0M1DT18H45M15S = **2010-11-08 19:59:59 EST** test_time_fall_type3_post_type2_st: SUB: 2010-11-07 03:16:55 EST - P-0Y0M1DT16H43M4S = **2010-11-08 19:59:59 EST** test_time_fall_type3_post_type2_post: SUB: 2010-11-08 19:59:59 EST - P+0Y0M0DT1H2M4S = **2010-11-08 18:57:55 EST** +test_time_fall_type3_dtsec_type2_stsec: SUB: 2010-11-07 01:00:00 EST - P+0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** +test_time_fall_type3_stsec_type2_dtsec: SUB: 2010-11-07 01:59:59 EDT - P-0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** diff --git a/ext/date/tests/DateTime_sub-fall-type3-type3.phpt b/ext/date/tests/DateTime_sub-fall-type3-type3.phpt index 518d741bc9..6448b5d842 100644 --- a/ext/date/tests/DateTime_sub-fall-type3-type3.phpt +++ b/ext/date/tests/DateTime_sub-fall-type3-type3.phpt @@ -49,3 +49,5 @@ test_time_fall_type3_post_type3_redodt: SUB: 2010-11-07 01:12:33 EDT - P-0Y0M1DT test_time_fall_type3_post_type3_redost: SUB: 2010-11-07 01:14:44 EST - P-0Y0M1DT18H45M15S = **2010-11-08 19:59:59 EST** test_time_fall_type3_post_type3_st: SUB: 2010-11-07 03:16:55 EST - P-0Y0M1DT16H43M4S = **2010-11-08 19:59:59 EST** test_time_fall_type3_post_type3_post: SUB: 2010-11-08 19:59:59 EST - P+0Y0M0DT1H2M4S = **2010-11-08 18:57:55 EST** +test_time_fall_type3_dtsec_type3_stsec: SUB: 2010-11-07 01:00:00 EST - P+0Y0M0DT0H0M1S = **2010-11-07 01:59:59 EDT** +test_time_fall_type3_stsec_type3_dtsec: SUB: 2010-11-07 01:59:59 EDT - P-0Y0M0DT0H0M1S = **2010-11-07 01:00:00 EST** -- 2.40.0