Skip to content

Commit eae41b5

Browse files
committed
Datetime fix
1 parent bc7441b commit eae41b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ import pytz
503503
<DTa> = DT.fromtimestamp(<real>, <tz>) # Aware DT from seconds since Epoch in tz time.
504504
```
505505
* **On Unix systems Epoch is `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...**
506+
* **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[+<offset>]'` or both separated by `'T'`.
506507

507508
### Decode
508509
```python
@@ -512,11 +513,6 @@ import pytz
512513
<float> = <DT>.timestamp() # Seconds since Epoch in local time or tz if set.
513514
```
514515

515-
### ISO
516-
* **Date: `'YYYY-MM-DD'`**
517-
* **Time: `'HH:MM:SS.ffffff[+<offset>]'`**
518-
* **Datetime: `'YYYY-MM-DDTHH:MM:SS.ffffff[+<offset>]'`**
519-
520516
### Format
521517
```python
522518
>>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S')

0 commit comments

Comments
 (0)