Browse Source

Datetime fix

pull/28/head
Jure Šorn 5 years ago
parent
commit
867b347d8f
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -496,7 +496,7 @@ import pytz
```python ```python
<D/T/DT> = D/T/DT.fromisoformat('<iso>') # Object from ISO string. <D/T/DT> = D/T/DT.fromisoformat('<iso>') # Object from ISO string.
<DT> = DT.strptime(<str>, '<format>') # Datetime from string, according to format. <DT> = DT.strptime(<str>, '<format>') # Datetime from string, according to format.
<D/DTn> = D/DT.fromordinal(<int>) # D/DT from days since Christ.
<D/DTn> = D/DT.fromordinal(<int>) # D/DTn from days since Christ.
<DTa> = DT.fromtimestamp(<real>, <tz>) # Aware DT from seconds since Epoch in tz time. <DTa> = DT.fromtimestamp(<real>, <tz>) # Aware DT from seconds since Epoch in tz time.
``` ```
* **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±<offset>]'`, or both separated by `'T'`.** * **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±<offset>]'`, or both separated by `'T'`.**

Loading…
Cancel
Save