You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/The Dating Game.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,20 @@ Open/Libre Office and Gnumeric don't have this limitation, and negative date/tim
14
14
To write a date in a cell using PhpSpreadsheet, we need to calculate the serialized Excel datestamp for that date. Methods to do this are available in the Shared\Date class, which provides a number of methods for conversion between different date options typically used in PHP applications (Unix timestamp, PHP DateTime objects and some recognisable formatted strings) and the Excel serialized value; and vice versa.
15
15
16
16
- Shared\Date::convertIsoDate()
17
-
- Converts a date/time in [ISO-8601 standard format](https://en.wikipedia.org/wiki/ISO_8601) to an Excel serialized timestamp
17
+
- Converts a date/time in [ISO-8601 standard format](https://en.wikipedia.org/wiki/ISO_8601) to an Excel serialized timestamp
18
18
- Shared\Date::PHPToExcel()
19
-
- Converts a Unix timestamp, a PHP DateTime object, or a recognisable formatted string to an Excel serialized timestamp
19
+
- Converts a Unix timestamp, a PHP DateTime object, or a recognisable formatted string to an Excel serialized timestamp
20
20
- Shared\Date::dateTimeToExcel()
21
-
- Converts a Unix timestamp to an Excel serialized timestamp
21
+
- Converts a Unix timestamp to an Excel serialized timestamp
22
22
- Shared\Date::timestampToExcel()
23
-
- Converts a PHP DateTime object to an Excel serialized timestamp
23
+
- Converts a PHP DateTime object to an Excel serialized timestamp
24
24
- Shared\Date::formattedPHPToExcel()
25
-
- Converts year, month, day, hour, minute, and second to an Excel serialized timestamp
25
+
- Converts year, month, day, hour, minute, and second to an Excel serialized timestamp
26
26
- Shared\Date::excelToDateTimeObject()
27
-
- Converts an Excel serialized timestamp to a PHP DateTime object
27
+
- Converts an Excel serialized timestamp to a PHP DateTime object
28
28
- Shared\Date::excelToTimestamp()
29
-
- Converts an Excel serialized timestamp to a Unix timestamp.
30
-
- The use of Unix timestamps, and therefore this function, is discouraged: they are not Y2038-safe on a 32-bit system, and have no timezone info.
29
+
- Converts an Excel serialized timestamp to a Unix timestamp.
30
+
- The use of Unix timestamps, and therefore this function, is discouraged: they are not Y2038-safe on a 32-bit system, and have no timezone info.
31
31
32
32
We probably also want to set the number format mask for the cell so that it will be displayed as a human-readable date.
0 commit comments