Lines Matching refs:datetime
42 from datetime import datetime
44 ((datetime(1970, 1, 1), datetime(1980, 1, 1)),
46 ((datetime(1980, 1, 1), datetime(1989, 1, 1)),
47 [datetime(1986, 1, 20),
48 datetime(1987, 1, 19),
49 datetime(1988, 1, 18)]),
50 ((datetime(2017, 2, 1), datetime(2022, 2, 1)),
51 [datetime(2018, 1, 15, 0, 0),
52 datetime(2019, 1, 21, 0, 0),
53 datetime(2020, 1, 20, 0, 0),
54 datetime(2021, 1, 18, 0, 0),
55 datetime(2022, 1, 17, 0, 0)]
77 … 10 AM every Monday and wants a function that tells them, given a ``datetime.datetime`` object, wh…
98 from datetime import datetime
102 (datetime(2018, 4, 11, 14, 30, 15, 123456),
103 datetime(2018, 4, 16, 10, 0)),
104 (datetime(2018, 4, 16, 10, 0),
105 datetime(2018, 4, 16, 10, 0)),
106 (datetime(2018, 4, 16, 10, 30),
107 datetime(2018, 4, 23, 10, 0)),
108 (datetime(2018, 4, 14, 9, 30, tzinfo=tz.gettz('America/New_York')),
109 datetime(2018, 4, 16, 10, 0, tzinfo=tz.gettz('America/New_York'))),
128 … <https://www.timeanddate.com/time/zones/>`_. This means that parsing a datetime string such as ``…
132 … India and Japan, write a function that parses a datetime string and returns a timezone-aware ``da…
157 from datetime import datetime
161 datetime(2018, 1, 1, 12, 0),
162 datetime(2018, 3, 20, 2, 0),
163 datetime(2018, 5, 12, 3, 30),
164 datetime(2014, 9, 1, 23)
221 ('2018-02-03 12:00 IST+02:00', datetime(2018, 2, 3, 12, tzinfo=ISRAEL)),
222 ('2018-06-14 12:00 IDT+03:00', datetime(2018, 6, 14, 12, tzinfo=ISRAEL)),
223 ('2018-06-14 12:00 IST', datetime(2018, 6, 14, 12, tzinfo=INDIA)),
224 ('2018-06-14 12:00 IST+05:30', datetime(2018, 6, 14, 12, tzinfo=INDIA)),
225 ('2018-02-03 12:00 IST', datetime(2018, 2, 3, 12, tzinfo=INDIA)),