Back to index

php5  5.3.10
DateTime_data-fall-type2-type2.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * Note: test names match method names in a set of PHPUnit tests
00005  * in a userland package.  Please be so kind as to leave them.
00006  */
00007 
00008 date_default_timezone_set('America/New_York');
00009 
00010 
00011 /*
00012  * Time, Fall, Zone Type 2 to Zone Type 2
00013  *
00014  * + prev: the day before the transition day  2010-11-06 18:38:28 EDT
00015  * + dt: daylight time on transition day      2010-11-07 00:10:20 EDT
00016  * + redodt: daylight time in the redo period 2010-11-07 01:12:33 EDT
00017  * + redost: standard time in the redo period 2010-11-07 01:14:44 EST
00018  * + st: standard time on the transition day  2010-11-07 03:16:55 EST
00019  * + post: the day after the transition day   2010-11-08 19:59:59 EST
00020  * + dtsec: daylight time 1 sec before change 2010-11-07 01:59:59 EDT
00021  * + stsec: standard time first second        2010-11-07 01:00:00 EST
00022  */
00023 echo "test_time_fall_type2_prev_type2_prev: ";
00024 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00025 $start = new DateTime('2010-10-04 02:18:48 EDT');  // sp prev, zt2
00026 examine_diff($end, $start, 'P+0Y1M2DT16H19M40S', 33);
00027 
00028 echo "test_time_fall_type2_prev_type2_dt: ";
00029 $end   = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00030 $start = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00031 examine_diff($end, $start, 'P+0Y0M0DT5H31M52S', 0);
00032 
00033 echo "test_time_fall_type2_prev_type2_redodt: ";
00034 $end   = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00035 $start = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00036 examine_diff($end, $start, 'P+0Y0M0DT6H34M5S', 0);
00037 
00038 echo "test_time_fall_type2_prev_type2_redost: ";
00039 $end   = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00040 $start = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00041 examine_diff($end, $start, 'P+0Y0M0DT7H36M16S', 0);
00042 
00043 echo "test_time_fall_type2_prev_type2_st: ";
00044 $end   = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00045 $start = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00046 examine_diff($end, $start, 'P+0Y0M0DT9H38M27S', 0);
00047 
00048 echo "test_time_fall_type2_prev_type2_post: ";
00049 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00050 $start = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00051 examine_diff($end, $start, 'P+0Y0M2DT1H21M31S', 2);
00052 
00053 echo "test_time_fall_type2_dt_type2_prev: ";
00054 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00055 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00056 examine_diff($end, $start, 'P-0Y0M0DT5H31M52S', 0);
00057 
00058 echo "test_time_fall_type2_dt_type2_dt: ";
00059 $end   = new DateTime('2010-11-07 00:15:35 EDT');  // sp dt, zt2
00060 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00061 examine_diff($end, $start, 'P+0Y0M0DT0H5M15S', 0);
00062 
00063 echo "test_time_fall_type2_dt_type2_redodt: ";
00064 $end   = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00065 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00066 examine_diff($end, $start, 'P+0Y0M0DT1H2M13S', 0);
00067 
00068 echo "test_time_fall_type2_dt_type2_redost: ";
00069 $end   = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00070 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00071 examine_diff($end, $start, 'P+0Y0M0DT2H4M24S', 0);
00072 
00073 echo "test_time_fall_type2_dt_type2_st: ";
00074 $end   = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00075 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00076 examine_diff($end, $start, 'P+0Y0M0DT4H6M35S', 0);
00077 
00078 echo "test_time_fall_type2_dt_type2_post: ";
00079 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00080 $start = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00081 examine_diff($end, $start, 'P+0Y0M1DT20H49M39S', 1);
00082 
00083 echo "test_time_fall_type2_redodt_type2_prev: ";
00084 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00085 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00086 examine_diff($end, $start, 'P-0Y0M0DT6H34M5S', 0);
00087 
00088 echo "test_time_fall_type2_redodt_type2_dt: ";
00089 $end   = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00090 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00091 examine_diff($end, $start, 'P-0Y0M0DT1H2M13S', 0);
00092 
00093 echo "test_time_fall_type2_redodt_type2_redodt: ";
00094 $end   = new DateTime('2010-11-07 01:15:35 EDT');  // sp redodt, zt2
00095 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00096 examine_diff($end, $start, 'P+0Y0M0DT0H3M2S', 0);
00097 
00098 echo "test_time_fall_type2_redodt_type2_redost: ";
00099 $end   = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00100 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00101 examine_diff($end, $start, 'P+0Y0M0DT1H2M11S', 0);
00102 
00103 echo "test_time_fall_type2_redodt_type2_st: ";
00104 $end   = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00105 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00106 examine_diff($end, $start, 'P+0Y0M0DT3H4M22S', 0);
00107 
00108 echo "test_time_fall_type2_redodt_type2_post: ";
00109 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00110 $start = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00111 examine_diff($end, $start, 'P+0Y0M1DT19H47M26S', 1);
00112 
00113 echo "test_time_fall_type2_redost_type2_prev: ";
00114 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00115 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00116 examine_diff($end, $start, 'P-0Y0M0DT7H36M16S', 0);
00117 
00118 echo "test_time_fall_type2_redost_type2_dt: ";
00119 $end   = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00120 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00121 examine_diff($end, $start, 'P-0Y0M0DT2H4M24S', 0);
00122 
00123 echo "test_time_fall_type2_redost_type2_redodt: ";
00124 $end   = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00125 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00126 examine_diff($end, $start, 'P-0Y0M0DT1H2M11S', 0);
00127 
00128 echo "test_time_fall_type2_redost_type2_redost: ";
00129 $end   = new DateTime('2010-11-07 01:16:54 EST');  // sp redodt, zt2
00130 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00131 examine_diff($end, $start, 'P+0Y0M0DT0H2M10S', 0);
00132 
00133 echo "test_time_fall_type2_redost_type2_st: ";
00134 $end   = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00135 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00136 examine_diff($end, $start, 'P+0Y0M0DT2H2M11S', 0);
00137 
00138 echo "test_time_fall_type2_redost_type2_post: ";
00139 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00140 $start = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00141 examine_diff($end, $start, 'P+0Y0M1DT18H45M15S', 1);
00142 
00143 echo "test_time_fall_type2_st_type2_prev: ";
00144 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00145 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00146 examine_diff($end, $start, 'P-0Y0M0DT9H38M27S', 0);
00147 
00148 echo "test_time_fall_type2_st_type2_dt: ";
00149 $end   = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00150 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00151 examine_diff($end, $start, 'P-0Y0M0DT4H6M35S', 0);
00152 
00153 echo "test_time_fall_type2_st_type2_redodt: ";
00154 $end   = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00155 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00156 examine_diff($end, $start, 'P-0Y0M0DT3H4M22S', 0);
00157 
00158 echo "test_time_fall_type2_st_type2_redost: ";
00159 $end   = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00160 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00161 examine_diff($end, $start, 'P-0Y0M0DT2H2M11S', 0);
00162 
00163 echo "test_time_fall_type2_st_type2_st: ";
00164 $end   = new DateTime('2010-11-07 05:19:56 EST');  // sp st, zt2
00165 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00166 examine_diff($end, $start, 'P+0Y0M0DT2H3M1S', 0);
00167 
00168 echo "test_time_fall_type2_st_type2_post: ";
00169 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00170 $start = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00171 examine_diff($end, $start, 'P+0Y0M1DT16H43M4S', 1);
00172 
00173 echo "test_time_fall_type2_post_type2_prev: ";
00174 $end   = new DateTime('2010-11-06 18:38:28 EDT');  // prev, zt2
00175 $start = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00176 examine_diff($end, $start, 'P-0Y0M2DT1H21M31S', 2);
00177 
00178 echo "test_time_fall_type2_post_type2_dt: ";
00179 $end   = new DateTime('2010-11-07 00:10:20 EDT');  // dt, zt2
00180 $start = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00181 examine_diff($end, $start, 'P-0Y0M1DT20H49M39S', 1);
00182 
00183 echo "test_time_fall_type2_post_type2_redodt: ";
00184 $end   = new DateTime('2010-11-07 01:12:33 EDT');  // redodt, zt2
00185 $start = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00186 examine_diff($end, $start, 'P-0Y0M1DT19H47M26S', 1);
00187 
00188 echo "test_time_fall_type2_post_type2_redost: ";
00189 $end   = new DateTime('2010-11-07 01:14:44 EST');  // redost, zt2
00190 $start = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00191 examine_diff($end, $start, 'P-0Y0M1DT18H45M15S', 1);
00192 
00193 echo "test_time_fall_type2_post_type2_st: ";
00194 $end   = new DateTime('2010-11-07 03:16:55 EST');  // st, zt2
00195 $start = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00196 examine_diff($end, $start, 'P-0Y0M1DT16H43M4S', 1);
00197 
00198 echo "test_time_fall_type2_post_type2_post: ";
00199 $end   = new DateTime('2010-11-08 19:59:59 EST');  // post, zt2
00200 $start = new DateTime('2010-11-08 18:57:55 EST');  // sp post, zt2
00201 examine_diff($end, $start, 'P+0Y0M0DT1H2M4S', 0);
00202 
00203 echo "test_time_fall_type2_dtsec_type2_stsec: ";
00204 $end   = new DateTime('2010-11-07 01:00:00 EST');  // stsec, zt2
00205 $start = new DateTime('2010-11-07 01:59:59 EDT');  // dtsec, zt2
00206 examine_diff($end, $start, 'P+0Y0M0DT0H0M1S', 0);
00207 
00208 echo "test_time_fall_type2_stsec_type2_dtsec: ";
00209 $end   = new DateTime('2010-11-07 01:59:59 EDT');  // dtsec, zt2
00210 $start = new DateTime('2010-11-07 01:00:00 EST');  // stsec, zt2
00211 examine_diff($end, $start, 'P-0Y0M0DT0H0M1S', 0);