From 1aca3fc2df9e40695485e29a709dff3037bfe61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 15 Mar 2019 01:01:03 +0100 Subject: [PATCH] Datetime fix --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e07aca0..2e05949 100644 --- a/README.md +++ b/README.md @@ -456,8 +456,8 @@ from itertools import product, combinations, combinations_with_replacement, perm Datetime -------- -* **Module Datetime provides Date (``), Time (``) and Datetime (`
`) classes.** -* **Time and Datetime can be 'aware' (``), meaning they have defined timezone, or 'naive' (``), meaning they don't.** +* **Module Datetime provides 'date' ``, 'time' `` and 'datetime' `
` classes.** +* **Time and datetime can be 'aware' ``, meaning they have defined timezone, or 'naive' ``, meaning they don't.** ```python # $ pip3 install pytz @@ -467,10 +467,10 @@ import pytz ### Constructors ```python - = date(year, month, day) -
= datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, fold=0) + = timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0) ``` * **`'fold=1'` means second pass in case of time jumping back for one hour.** * **Use `'.weekday()'` to get day of the week (Mon == 0).**