mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-23 17:12:10 +00:00
ec4098c8fd
While we might never be able to have 100% of our code strict, we can at the very least do it for all of our tests. This ensures that our tests are using our API with the types as intended by the test author, and not silently be cast to what our API requires.
92 lines
1.2 KiB
PHP
92 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// Year Month Day Hours Minutes Seconds Result Comments
|
|
|
|
return [
|
|
// PHP 32-bit Earliest Date 14-Dec-1901
|
|
[
|
|
714,
|
|
1901,
|
|
12,
|
|
14,
|
|
],
|
|
// 31-Dec-1903
|
|
[
|
|
1461,
|
|
1903,
|
|
12,
|
|
31,
|
|
],
|
|
// Excel 1904 Calendar Base Date 01-Jan-1904
|
|
[
|
|
1462,
|
|
1904,
|
|
1,
|
|
1,
|
|
],
|
|
// 02-Jan-1904
|
|
[
|
|
1463,
|
|
1904,
|
|
1,
|
|
2,
|
|
],
|
|
// 19-Dec-1960
|
|
[
|
|
22269,
|
|
1960,
|
|
12,
|
|
19,
|
|
],
|
|
// PHP Base Date 01-Jan-1970
|
|
[
|
|
25569,
|
|
1970,
|
|
1,
|
|
1,
|
|
],
|
|
// 07-Dec-1982
|
|
[
|
|
30292,
|
|
1982,
|
|
12,
|
|
7,
|
|
],
|
|
// 12-Jun-2008
|
|
[
|
|
39611,
|
|
2008,
|
|
6,
|
|
12,
|
|
],
|
|
// PHP 32-bit Latest Date 19-Jan-2038
|
|
[
|
|
50424,
|
|
2038,
|
|
1,
|
|
19,
|
|
],
|
|
// 18-May-1903 13:37:46
|
|
[
|
|
1234.56789,
|
|
1903,
|
|
5,
|
|
18,
|
|
13,
|
|
37,
|
|
46,
|
|
],
|
|
// 18-Oct-1933 16:17:37
|
|
[
|
|
12345.6789,
|
|
1933,
|
|
10,
|
|
18,
|
|
16,
|
|
17,
|
|
37,
|
|
],
|
|
];
|