pendulum is what i think is best date/times library for Python.
All python standard library datetime work in pendulum.
So as a example can use
All python standard library datetime work in pendulum.
So as a example can use
sydney_open
made in datetime and subtract if from pendulum.now()
.>>> import pendulum >>> now = pendulum.now() >>> now <Pendulum [2017-07-03T00:56:43.582239+02:00]> >>> countdown = sydney_open - now >>> print(f"Sydney opens in {countdown.hours} hours and {countdown.minutes} minutes") Sydney opens in 21 hours and 3 minutes