Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-02 19:28:35 +02:00
parent 98b5f67412
commit bff03eb7f4
23 changed files with 72 additions and 51 deletions

View File

@ -5,7 +5,7 @@ tags: date,intermediate
Converts a date to its ISO-8601 represenation.
- Use `datetime.datetime.isoformat()` to convert the given `datetime` object to an ISO-8601 date.
- Use `datetime.datetime.isoformat()` to convert the given `datetime.datetime` object to an ISO-8601 date.
```py
from datetime import datetime
@ -17,5 +17,5 @@ def to_iso_date(d):
```py
from datetime import datetime
to_iso_date(datetime(2020,10,25)) # 2020-10-25T00:00:00
to_iso_date(datetime(2020, 10, 25)) # 2020-10-25T00:00:00
```