90 lines
1.2 KiB
PHP
90 lines
1.2 KiB
PHP
<?php
|
|
|
|
// 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,
|
|
],
|
|
];
|