PhpSpreadsheet/tests/data/Shared/Date/TimestampToExcel1900.php

62 lines
916 B
PHP
Raw Permalink Normal View History

<?php
// Unix TimeStamp Result Comments
return [
// PHP 32-bit Earliest Date 14-Dec-1901
[
714,
-2147472000,
],
// 31-Dec-1903
[
1461,
-2082931200,
],
// Excel 1904 Calendar Base Date 01-Jan-1904
[
1462,
-2082844800,
],
// 02-Jan-1904
[
1463,
-2082758400,
],
// 19-Dec-1960
[
22269,
-285120000,
],
// PHP Base Date 01-Jan-1970
[
25569,
0,
],
// 07-Dec-1982
[
30292,
408067200,
],
// 12-Jun-2008
[
39611,
1213228800,
],
// PHP 32-bit Latest Date 19-Jan-2038
[
50424,
2147472000,
],
// 18-May-1903 13:37:46
[
1234.56789,
-2102494934,
],
// 18-Oct-1933 16:17:37
[
12345.6789,
-1142494943,
],
];