From 2a7f6ebb8b1c2db70a9b13fe8593c4433e90cc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 16 Sep 2019 00:40:55 +0200 Subject: [PATCH] Datetime --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c56a51c..51c870a 100644 --- a/README.md +++ b/README.md @@ -628,7 +628,7 @@ from dateutil.tz import UTC, tzlocal, gettz = DT.fromtimestamp() # Local time DTn from seconds since Epoch. = DT.fromtimestamp(, ) # Aware datetime from seconds since Epoch. ``` -* **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±]'`, or both separated by a space or `'T'`. Offset is formatted as: `'HH:MM'`.** +* **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±]'`, or both separated by a space or a `'T'`. Offset is formatted as: `'HH:MM'`.** * **On Unix systems Epoch is `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...** ### Decode diff --git a/index.html b/index.html index 8273763..bc85ce7 100644 --- a/index.html +++ b/index.html @@ -676,7 +676,7 @@ shuffle(<list>)
    -
  • ISO strings come in following forms: 'YYYY-MM-DD', 'HH:MM:SS.ffffff[±<offset>]', or both separated by a space or 'T'. Offset is formatted as: 'HH:MM'.
  • +
  • ISO strings come in following forms: 'YYYY-MM-DD', 'HH:MM:SS.ffffff[±<offset>]', or both separated by a space or a 'T'. Offset is formatted as: 'HH:MM'.
  • On Unix systems Epoch is '1970-01-01 00:00 UTC', '1970-01-01 01:00 CET', …

Decode

<str>    = <D/T/DT>.isoformat()             # ISO string representation.