From eae41b5801ccfc29de8bb71aed7a7ac18494ab48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 15 Mar 2019 02:24:17 +0100 Subject: [PATCH] Datetime fix --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 967b4a2..9c327fd 100644 --- a/README.md +++ b/README.md @@ -503,6 +503,7 @@ import pytz = DT.fromtimestamp(, ) # Aware DT from seconds since Epoch in tz time. ``` * **On Unix systems Epoch is `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...** +* **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[+]'` or both separated by `'T'`. ### Decode ```python @@ -512,11 +513,6 @@ import pytz =
.timestamp() # Seconds since Epoch in local time or tz if set. ``` -### ISO -* **Date: `'YYYY-MM-DD'`** -* **Time: `'HH:MM:SS.ffffff[+]'`** -* **Datetime: `'YYYY-MM-DDTHH:MM:SS.ffffff[+]'`** - ### Format ```python >>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S')