Pendulum is a Python library to make your life easier when it comes down to work with date/time.
A few dependencies will be installed: pytz, tzlocal and python-dateutil. Just the python-dateutil
itself is already great – but pendulum offers a few more tweaks.
Let’s keep the
now variable for the next examples.
Accepts days, months, years, hours, minutes, seconds, microseconds, weeks.
There is much more to explore. See the official documentation at https://pendulum.eustace.io/.