Browse Source

Datetime fix

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

3
README.md

@ -465,14 +465,13 @@ from datetime import date, time, datetime, timedelta
import pytz import pytz
``` ```
### Constructors
```python ```python
<D> = date(year, month, day) <D> = date(year, month, day)
<T> = time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0) <T> = time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
<DT> = datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0) <DT> = datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0)
<TD> = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0) <TD> = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
``` ```
* **Use `'<D/DT>.weekday()'` to get day of the week (Mon == 0).**
* **Use `'<D/DT>.weekday()'` to get the day of the week (Mon == 0).**
* **`'fold=1'` means second pass in case of time jumping back for one hour.** * **`'fold=1'` means second pass in case of time jumping back for one hour.**
### Now ### Now

Loading…
Cancel
Save