Skip to content

Commit 180ab87

Browse files
committed
Datetime fix
1 parent 2f31a96 commit 180ab87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ import pytz
472472
<DT> = datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
473473
<TD> = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
474474
```
475-
* **`'fold=1'` means second pass in case of time jumping back for one hour.**
476475
* **Use `'<D/DT>.weekday()'` to get day of the week (Mon == 0).**
476+
* **`'fold=1'` means second pass in case of time jumping back for one hour.**
477477

478478
### Now
479479
```python
@@ -486,7 +486,7 @@ import pytz
486486
### Encode
487487
```python
488488
<D/T/DT> = D/T/DT.fromisoformat(<str>) # From 'YYYY-MM-DD', 'HH:MM:SS.ffffff[+<offset>]' or both.
489-
<DT> = DT.strptime(<str>, '<format>') # Datetime from string according to 'format'.
489+
<DT> = DT.strptime(<str>, '<format>') # Datetime from string according to <format>.
490490
<D/DTn> = D/DT.fromordinal(<int>) # Date or datetime from days since Christ.
491491
<D/DTn> = D/DT.fromtimestamp(<real>) # Date or datetime from seconds since Epoch in local time.
492492
<DTn> = DT.utcfromtimestamp(<real>) # Naive datetime from seconds since Epoch in UTC time.

0 commit comments

Comments
 (0)