Skip to content

Commit 1aca3fc

Browse files
committed
Datetime fix
1 parent b88dbb3 commit 1aca3fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ from itertools import product, combinations, combinations_with_replacement, perm
456456

457457
Datetime
458458
--------
459-
* **Module Datetime provides Date (`<D>`), Time (`<T>`) and Datetime (`<DT>`) classes.**
460-
* **Time and Datetime can be 'aware' (`<a>`), meaning they have defined timezone, or 'naive' (`<n>`), meaning they don't.**
459+
* **Module Datetime provides 'date' `<D>`, 'time' `<T>` and 'datetime' `<DT>` classes.**
460+
* **Time and datetime can be 'aware' `<a>`, meaning they have defined timezone, or 'naive' `<n>`, meaning they don't.**
461461

462462
```python
463463
# $ pip3 install pytz
@@ -467,10 +467,10 @@ import pytz
467467

468468
### Constructors
469469
```python
470-
<date> = date(year, month, day)
471-
<time> = time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
472-
<datetime> = datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
473-
<timedelta> = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
470+
<D> = date(year, month, day)
471+
<T> = time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
472+
<DT> = datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
473+
<TD> = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
474474
```
475475
* **`'fold=1'` means second pass in case of time jumping back for one hour.**
476476
* **Use `'<D/DT>.weekday()'` to get day of the week (Mon == 0).**

0 commit comments

Comments
 (0)