Completed
Push — develop ( aa97bb...91573b )
by
unknown
09:37
created
tests/PhpSpreadsheet/Cell/DefaultValueBinderTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
             ->getMock();
25 25
         // Configure the stub.
26 26
         $this->cellStub->expects($this->any())
27
-             ->method('setValueExplicit')
28
-             ->will($this->returnValue(true));
27
+                ->method('setValueExplicit')
28
+                ->will($this->returnValue(true));
29 29
 
30 30
     }
31 31
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function testDataTypeForValue()
67 67
     {
68 68
         list($args, $expectedResult) = func_get_args();
69
-        $result = call_user_func_array(array(DefaultValueBinder::class,'dataTypeForValue'), $args);
69
+        $result = call_user_func_array(array(DefaultValueBinder::class, 'dataTypeForValue'), $args);
70 70
         $this->assertEquals($expectedResult, $result);
71 71
     }
72 72
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $objRichText->createText('Hello World');
82 82
 
83 83
         $expectedResult = DataType::TYPE_INLINE;
84
-        $result = call_user_func(array(DefaultValueBinder::class,'dataTypeForValue'), $objRichText);
84
+        $result = call_user_func(array(DefaultValueBinder::class, 'dataTypeForValue'), $objRichText);
85 85
         $this->assertEquals($expectedResult, $result);
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Cell/AdvancedValueBinderTest.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -45,22 +45,22 @@
 block discarded – undo
45 45
             ->disableOriginalConstructor()
46 46
             ->getMock();
47 47
         $cache->expects($this->any())
48
-                 ->method('getParent')
49
-                 ->will($this->returnValue($sheet));
48
+                    ->method('getParent')
49
+                    ->will($this->returnValue($sheet));
50 50
 
51 51
         $sheet->expects($this->once())
52
-                 ->method('getStyle')
53
-                 ->will($this->returnSelf());
52
+                    ->method('getStyle')
53
+                    ->will($this->returnSelf());
54 54
         $sheet->expects($this->once())
55
-                 ->method('getNumberFormat')
56
-                 ->will($this->returnSelf());
55
+                    ->method('getNumberFormat')
56
+                    ->will($this->returnSelf());
57 57
         $sheet->expects($this->once())
58
-                 ->method('setFormatCode')
59
-                 ->with($format)
60
-                 ->will($this->returnSelf());
58
+                    ->method('setFormatCode')
59
+                    ->with($format)
60
+                    ->will($this->returnSelf());
61 61
         $sheet->expects($this->any())
62
-                 ->method('getCellCacheController')
63
-                 ->will($this->returnValue($cache));
62
+                    ->method('getCellCacheController')
63
+                    ->will($this->returnValue($cache));
64 64
 
65 65
         \PHPExcel\Shared\StringHelper::setCurrencyCode($currencyCode);
66 66
         \PHPExcel\Shared\StringHelper::setDecimalSeparator($decimalSeparator);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $sheet = $this->getMock(
41 41
             '\\PHPExcel\\Worksheet',
42
-            array('getStyle', 'getNumberFormat', 'setFormatCode','getCellCacheController')
42
+            array('getStyle', 'getNumberFormat', 'setFormatCode', 'getCellCacheController')
43 43
         );
44 44
         $cache = $this->getMockBuilder('\\PHPExcel\\CachedObjectStorage\\Memory')
45 45
             ->disableOriginalConstructor()
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Cell/DataTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function testGetErrorCodes()
19 19
     {
20
-        $result = call_user_func(array(DataType::class,'getErrorCodes'));
20
+        $result = call_user_func(array(DataType::class, 'getErrorCodes'));
21 21
         $this->assertInternalType('array', $result);
22 22
         $this->assertGreaterThan(0, count($result));
23 23
         $this->assertArrayHasKey('#NULL!', $result);
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/SettingsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function testGetXMLSettings()
15 15
     {
16
-        $result = call_user_func(array('PHPExcel\\Settings','getLibXmlLoaderOptions'));
16
+        $result = call_user_func(array('PHPExcel\\Settings', 'getLibXmlLoaderOptions'));
17 17
         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR) & $result));
18 18
     }
19 19
 
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function testSetXMLSettings()
23 23
     {
24
-        call_user_func_array(array('PHPExcel\\Settings','setLibXmlLoaderOptions'), [LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID]);
25
-        $result = call_user_func(array('PHPExcel\\Settings','getLibXmlLoaderOptions'));
24
+        call_user_func_array(array('PHPExcel\\Settings', 'setLibXmlLoaderOptions'), [LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID]);
25
+        $result = call_user_func(array('PHPExcel\\Settings', 'getLibXmlLoaderOptions'));
26 26
         $this->assertTrue((bool) ((LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_DTDVALID) & $result));
27 27
     }
28 28
 
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/ReferenceHelperTest.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@  discard block
 block discarded – undo
14 14
     public function testColumnSort()
15 15
     {
16 16
         $columnBase = $columnExpectedResult = [
17
-            'A','B','Z',
18
-            'AA','AB','AZ',
19
-            'BA','BB','BZ',
20
-            'ZA','ZB','ZZ',
21
-            'AAA','AAB','AAZ',
22
-            'ABA','ABB','ABZ',
23
-            'AZA','AZB','AZZ',
24
-            'BAA','BAB','BAZ',
25
-            'BBA','BBB','BBZ',
26
-            'BZA','BZB','BZZ'
17
+            'A', 'B', 'Z',
18
+            'AA', 'AB', 'AZ',
19
+            'BA', 'BB', 'BZ',
20
+            'ZA', 'ZB', 'ZZ',
21
+            'AAA', 'AAB', 'AAZ',
22
+            'ABA', 'ABB', 'ABZ',
23
+            'AZA', 'AZB', 'AZZ',
24
+            'BAA', 'BAB', 'BAZ',
25
+            'BBA', 'BBB', 'BBZ',
26
+            'BZA', 'BZB', 'BZZ'
27 27
         ];
28 28
         shuffle($columnBase);
29
-        usort($columnBase, array(ReferenceHelper::class,'columnSort'));
29
+        usort($columnBase, array(ReferenceHelper::class, 'columnSort'));
30 30
         foreach ($columnBase as $key => $value) {
31 31
             $this->assertEquals($columnExpectedResult[$key], $value);
32 32
         }
@@ -35,20 +35,20 @@  discard block
 block discarded – undo
35 35
     public function testColumnReverseSort()
36 36
     {
37 37
         $columnBase = $columnExpectedResult = [
38
-            'A','B','Z',
39
-            'AA','AB','AZ',
40
-            'BA','BB','BZ',
41
-            'ZA','ZB','ZZ',
42
-            'AAA','AAB','AAZ',
43
-            'ABA','ABB','ABZ',
44
-            'AZA','AZB','AZZ',
45
-            'BAA','BAB','BAZ',
46
-            'BBA','BBB','BBZ',
47
-            'BZA','BZB','BZZ'
38
+            'A', 'B', 'Z',
39
+            'AA', 'AB', 'AZ',
40
+            'BA', 'BB', 'BZ',
41
+            'ZA', 'ZB', 'ZZ',
42
+            'AAA', 'AAB', 'AAZ',
43
+            'ABA', 'ABB', 'ABZ',
44
+            'AZA', 'AZB', 'AZZ',
45
+            'BAA', 'BAB', 'BAZ',
46
+            'BBA', 'BBB', 'BBZ',
47
+            'BZA', 'BZB', 'BZZ'
48 48
         ];
49 49
         shuffle($columnBase);
50 50
         $columnExpectedResult = array_reverse($columnExpectedResult);
51
-        usort($columnBase, array(ReferenceHelper::class,'columnReverseSort'));
51
+        usort($columnBase, array(ReferenceHelper::class, 'columnReverseSort'));
52 52
         foreach ($columnBase as $key => $value) {
53 53
             $this->assertEquals($columnExpectedResult[$key], $value);
54 54
         }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Style/NumberFormatTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $args = func_get_args();
25 25
         $expectedResult = array_pop($args);
26
-        $result = call_user_func_array(array(NumberFormat::class,'toFormattedString'), $args);
26
+        $result = call_user_func_array(array(NumberFormat::class, 'toFormattedString'), $args);
27 27
         $this->assertEquals($expectedResult, $result);
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Date.php 2 patches
Doc Comments   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * Set the Default timezone to use for dates
114 114
      *
115
-     * @param     string|\DateTimeZone    $timezone    The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions
115
+     * @param     string|\DateTimeZone    $timeZone    The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions
116 116
      * @return    boolean                              Success or failure
117 117
      * @throws    \Exception
118 118
      */
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * Validate a timezone
143 143
      *
144
-     * @param     string|\DateTimeZone    $timezone    The timezone to validate, either as a timezone string or object
144
+     * @param     string|\DateTimeZone    $timeZone    The timezone to validate, either as a timezone string or object
145 145
      * @return    \DateTimeZone                        The timezone as a timezone object
146 146
      * @throws    \Exception
147 147
      */
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * Convert a MS serialized datetime value from Excel to a PHP Date/Time object
160 160
      *
161
-     * @param     integer|float    $dateValue        MS Excel serialized date/time value
162
-     * @param     \DateTimeZone|string|null          $timezone            The timezone to assume for the Excel timestamp,
161
+     * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
163 162
      *                                                                        if you don't want to treat it as a UTC value
164 163
      *                                                                    Use the default (UST) unless you absolutely need a conversion
165 164
      * @return    \DateTime                          PHP date/time object
@@ -196,8 +195,7 @@  discard block
 block discarded – undo
196 195
     /**
197 196
      * Convert a MS serialized datetime value from Excel to a unix timestamp
198 197
      *
199
-     * @param     integer|float    $dateValue        MS Excel serialized date/time value
200
-     * @param     \DateTimeZone|string|null          $timezone            The timezone to assume for the Excel timestamp,
198
+     * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
201 199
      *                                                                        if you don't want to treat it as a UTC value
202 200
      *                                                                    Use the default (UST) unless you absolutely need a conversion
203 201
      * @return    integer                            Unix timetamp for this date/time
@@ -212,7 +210,7 @@  discard block
 block discarded – undo
212 210
     /**
213 211
      *    Convert a date from PHP to an MS Excel serialized date/time value
214 212
      *
215
-     *    @param    mixed            $dateValue            PHP serialized date/time or date object
213
+     *    @param    integer            $dateValue            PHP serialized date/time or date object
216 214
      *    @return   float|boolean    Excel date/time value
217 215
      *                                  or boolean FALSE on failure
218 216
      */
@@ -250,7 +248,7 @@  discard block
 block discarded – undo
250 248
     /**
251 249
      *    Convert a Unix timestamp to an MS Excel serialized date/time value
252 250
      *
253
-     *    @param    \DateTimeInterface    $dateValue            PHP DateTime object
251
+     *    @param    integer    $dateValue            PHP DateTime object
254 252
      *    @return   float                 MS Excel serialized date/time value
255 253
      */
256 254
     public static function timestampToExcel($dateValue = 0)
@@ -270,7 +268,7 @@  discard block
 block discarded – undo
270 268
      * @param    integer    $hours
271 269
      * @param    integer    $minutes
272 270
      * @param    integer    $seconds
273
-     * @return   integer    Excel date/time value
271
+     * @return   double    Excel date/time value
274 272
      */
275 273
     public static function formattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0)
276 274
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 class Date
31 31
 {
32 32
     /** constants */
33
-    const CALENDAR_WINDOWS_1900 = 1900;        //    Base date of 1st Jan 1900 = 1.0
34
-    const CALENDAR_MAC_1904 = 1904;            //    Base date of 2nd Jan 1904 = 1.0
33
+    const CALENDAR_WINDOWS_1900 = 1900; //    Base date of 1st Jan 1900 = 1.0
34
+    const CALENDAR_MAC_1904 = 1904; //    Base date of 2nd Jan 1904 = 1.0
35 35
 
36 36
     /*
37 37
      * Names of the months of the year, indexed by shortname
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
             return false;
389 389
         }
390 390
         // Try checking for any of the date formatting characters that don't appear within square braces
391
-        if (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i', $pFormatCode)) {
391
+        if (preg_match('/(^|\])[^\[]*[' . self::$possibleDateFormatCharacters . ']/i', $pFormatCode)) {
392 392
             //    We might also have a format mask containing quoted strings...
393 393
             //        we don't want to test for any of our characters within the quoted blocks
394 394
             if (strpos($pFormatCode, '"') !== false) {
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
                 foreach (explode('"', $pFormatCode) as $subVal) {
397 397
                     //    Only test in alternate array entries (the non-quoted blocks)
398 398
                     if (($segMatcher = !$segMatcher) &&
399
-                        (preg_match('/(^|\])[^\[]*['.self::$possibleDateFormatCharacters.']/i', $subVal))) {
399
+                        (preg_match('/(^|\])[^\[]*[' . self::$possibleDateFormatCharacters . ']/i', $subVal))) {
400 400
                         return true;
401 401
                     }
402 402
                 }
Please login to merge, or discard this patch.
tests/PhpSpreadsheet/Shared/DateTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         );
15 15
 
16 16
         foreach ($calendarValues as $calendarValue) {
17
-            $result = call_user_func(array(Date::class,'setExcelCalendar'), $calendarValue);
17
+            $result = call_user_func(array(Date::class, 'setExcelCalendar'), $calendarValue);
18 18
             $this->assertTrue($result);
19 19
         }
20 20
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function testSetExcelCalendarWithInvalidValue()
23 23
     {
24 24
         $unsupportedCalendar = '2012';
25
-        $result = call_user_func(array(Date::class,'setExcelCalendar'), $unsupportedCalendar);
25
+        $result = call_user_func(array(Date::class, 'setExcelCalendar'), $unsupportedCalendar);
26 26
         $this->assertFalse($result);
27 27
     }
28 28
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testDateTimeExcelToTimestamp1900()
33 33
     {
34 34
         $result = call_user_func(
35
-            array(Date::class,'setExcelCalendar'),
35
+            array(Date::class, 'setExcelCalendar'),
36 36
             Date::CALENDAR_WINDOWS_1900
37 37
         );
38 38
 
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
     public function testDateTimeTimestampToExcel1900()
54 54
     {
55 55
         $result = call_user_func(
56
-            array(Date::class,'setExcelCalendar'),
56
+            array(Date::class, 'setExcelCalendar'),
57 57
             Date::CALENDAR_WINDOWS_1900
58 58
         );
59 59
 
60 60
         $args = func_get_args();
61 61
         $expectedResult = array_pop($args);
62
-        $result = call_user_func_array(array(Date::class,'timestampToExcel'), $args);
62
+        $result = call_user_func_array(array(Date::class, 'timestampToExcel'), $args);
63 63
         $this->assertEquals($expectedResult, $result, null, 1E-5);
64 64
     }
65 65
 
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
     public function testDateTimeDateTimeToExcel()
75 75
     {
76 76
         $result = call_user_func(
77
-            array(Date::class,'setExcelCalendar'),
77
+            array(Date::class, 'setExcelCalendar'),
78 78
             Date::CALENDAR_WINDOWS_1900
79 79
         );
80 80
 
81 81
         $args = func_get_args();
82 82
         $expectedResult = array_pop($args);
83
-        $result = call_user_func_array(array(Date::class,'dateTimeToExcel'), $args);
83
+        $result = call_user_func_array(array(Date::class, 'dateTimeToExcel'), $args);
84 84
         $this->assertEquals($expectedResult, $result, null, 1E-5);
85 85
     }
86 86
 
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
     public function testDateTimeFormattedPHPToExcel1900()
96 96
     {
97 97
         $result = call_user_func(
98
-            array(Date::class,'setExcelCalendar'),
98
+            array(Date::class, 'setExcelCalendar'),
99 99
             Date::CALENDAR_WINDOWS_1900
100 100
         );
101 101
 
102 102
         $args = func_get_args();
103 103
         $expectedResult = array_pop($args);
104
-        $result = call_user_func_array(array(Date::class,'formattedPHPToExcel'), $args);
104
+        $result = call_user_func_array(array(Date::class, 'formattedPHPToExcel'), $args);
105 105
         $this->assertEquals($expectedResult, $result, null, 1E-5);
106 106
     }
107 107
 
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
     public function testDateTimeExcelToTimestamp1904()
117 117
     {
118 118
         $result = call_user_func(
119
-            array(Date::class,'setExcelCalendar'),
119
+            array(Date::class, 'setExcelCalendar'),
120 120
             Date::CALENDAR_MAC_1904
121 121
         );
122 122
 
123 123
         $args = func_get_args();
124 124
         $expectedResult = array_pop($args);
125
-        $result = call_user_func_array(array(Date::class,'excelToTimestamp'), $args);
125
+        $result = call_user_func_array(array(Date::class, 'excelToTimestamp'), $args);
126 126
         $this->assertEquals($expectedResult, $result);
127 127
     }
128 128
 
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
     public function testDateTimeTimestampToExcel1904()
138 138
     {
139 139
         $result = call_user_func(
140
-            array(Date::class,'setExcelCalendar'),
140
+            array(Date::class, 'setExcelCalendar'),
141 141
             Date::CALENDAR_MAC_1904
142 142
         );
143 143
 
144 144
         $args = func_get_args();
145 145
         $expectedResult = array_pop($args);
146
-        $result = call_user_func_array(array(Date::class,'timestampToExcel'), $args);
146
+        $result = call_user_func_array(array(Date::class, 'timestampToExcel'), $args);
147 147
         $this->assertEquals($expectedResult, $result, null, 1E-5);
148 148
     }
149 149
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $args = func_get_args();
161 161
         $expectedResult = array_pop($args);
162
-        $result = call_user_func_array(array(Date::class,'isDateTimeFormatCode'), $args);
162
+        $result = call_user_func_array(array(Date::class, 'isDateTimeFormatCode'), $args);
163 163
         $this->assertEquals($expectedResult, $result);
164 164
     }
165 165
 
@@ -174,13 +174,13 @@  discard block
 block discarded – undo
174 174
     public function testDateTimeExcelToTimestamp1900Timezone()
175 175
     {
176 176
         $result = call_user_func(
177
-            array(Date::class,'setExcelCalendar'),
177
+            array(Date::class, 'setExcelCalendar'),
178 178
             Date::CALENDAR_WINDOWS_1900
179 179
         );
180 180
 
181 181
         $args = func_get_args();
182 182
         $expectedResult = array_pop($args);
183
-        $result = call_user_func_array(array(Date::class,'excelToTimestamp'), $args);
183
+        $result = call_user_func_array(array(Date::class, 'excelToTimestamp'), $args);
184 184
         $this->assertEquals($expectedResult, $result);
185 185
     }
186 186
 
Please login to merge, or discard this patch.
tests/rawTestData/Shared/Date/DateTimeToExcel.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@
 block discarded – undo
2 2
 
3 3
 // DateTime object                          Result           Comments
4 4
 return [
5
-    [ new DateTime('1900-01-01'),           1.0        ],    //  Excel 1900 base calendar date
6
-    [ new DateTime('1900-02-28'),           59.0       ],    //  This and next test show gap for the mythical
7
-    [ new DateTime('1900-03-01'),           61.0       ],    //      MS Excel 1900 Leap Year
8
-    [ new DateTime('1901-12-14'),           714.0      ],    //  Unix Timestamp 32-bit Earliest Date
9
-    [ new DateTime('1903-12-31'),           1461.0     ],
10
-    [ new DateTime('1904-01-01'),           1462.0     ],    //  Excel 1904 Calendar Base Date
11
-    [ new DateTime('1904-01-02'),           1463.0     ],
12
-    [ new DateTime('1960-12-19'),           22269.0    ],
13
-    [ new DateTime('1970-01-01'),           25569.0    ],    //  Unix Timestamp Base Date
14
-    [ new DateTime('1982-12-07'),           30292.0    ],
15
-    [ new DateTime('2008-06-12'),           39611.0    ],
16
-    [ new DateTime('2038-01-19'),           50424.0    ],    //  Unix Timestamp 32-bit Latest Date
17
-    [ new DateTime('1903-05-18 13:37:46'),  1234.56789 ],
18
-    [ new DateTime('1933-10-18 16:17:37'),  12345.6789 ],
19
-    [ new DateTime('2099-12-31'),           73050.0    ],
5
+    [new DateTime('1900-01-01'), 1.0], //  Excel 1900 base calendar date
6
+    [new DateTime('1900-02-28'), 59.0], //  This and next test show gap for the mythical
7
+    [new DateTime('1900-03-01'), 61.0], //      MS Excel 1900 Leap Year
8
+    [new DateTime('1901-12-14'), 714.0], //  Unix Timestamp 32-bit Earliest Date
9
+    [new DateTime('1903-12-31'), 1461.0],
10
+    [new DateTime('1904-01-01'), 1462.0], //  Excel 1904 Calendar Base Date
11
+    [new DateTime('1904-01-02'), 1463.0],
12
+    [new DateTime('1960-12-19'), 22269.0],
13
+    [new DateTime('1970-01-01'), 25569.0], //  Unix Timestamp Base Date
14
+    [new DateTime('1982-12-07'), 30292.0],
15
+    [new DateTime('2008-06-12'), 39611.0],
16
+    [new DateTime('2038-01-19'), 50424.0], //  Unix Timestamp 32-bit Latest Date
17
+    [new DateTime('1903-05-18 13:37:46'), 1234.56789],
18
+    [new DateTime('1933-10-18 16:17:37'), 12345.6789],
19
+    [new DateTime('2099-12-31'), 73050.0],
20 20
 ];
Please login to merge, or discard this patch.