Skip to content

Commit 52f846a

Browse files
authored
Indent with four spaces instead of two
to adhere to the standard's best practice and (verifiedly) make the nesting carry over to being displayed in the rendered output
1 parent a266911 commit 52f846a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/topics/The Dating Game.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ Open/Libre Office and Gnumeric don't have this limitation, and negative date/tim
1414
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.
1515

1616
- 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
1818
- 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
2020
- Shared\Date::dateTimeToExcel()
21-
- Converts a Unix timestamp to an Excel serialized timestamp
21+
- Converts a Unix timestamp to an Excel serialized timestamp
2222
- 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
2424
- 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
2626
- 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
2828
- 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.
3131

3232
We probably also want to set the number format mask for the cell so that it will be displayed as a human-readable date.
3333
```php

0 commit comments

Comments
 (0)