@@ -456,8 +456,8 @@ from itertools import product, combinations, combinations_with_replacement, perm
456
456
457
457
Datetime
458
458
--------
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.**
461
461
462
462
``` python
463
463
# $ pip3 install pytz
@@ -467,10 +467,10 @@ import pytz
467
467
468
468
### Constructors
469
469
``` 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 )
474
474
```
475
475
* ** ` 'fold=1' ` means second pass in case of time jumping back for one hour.**
476
476
* ** Use ` '<D/DT>.weekday()' ` to get day of the week (Mon == 0).**
0 commit comments