May 2021
Intermediate to advanced
142 pages
3h 37m
English
Python’s datetime module allows your programs to manipulate dates and times in high-level ways. You can, for example, use arithmetic to calculate the difference between dates and advance dates forward and backward through time.
This section introduces a particularly thorny part of the datetime library: dealing with timezones. You won’t need to know the ins and outs of the datetime module to follow along with this section, but feel free to consult the Python datetime docs if you are interested.[79]
Python provides the datetime object to represent specific points in time (for example, October 11th 2020 at 7:42 p.m.). By design, Python allows users to work with two variants ...