Pybites Logo

At what time does pybites live?

Level: Beginner (score: 2)

We used pytz for this Bite before, but since 3.9 you can use the zoneinfo (Standard lib) module 📈

Let's see how many hours Bob and Julian have to bridge in order to deliver you Pybites. It differs depending on whether it's Winter or Summer in their relative hemispheres.

Complete the what_time_lives_pybites function which receives a naive / not timezone aware datetime object (see the docs for what the difference is). 

First convert the passed in naive_utc_dt to a aware datetime, then convert it to AUSTRALIA and SPAIN localized datetimes returning them in a tuple. For this we already defined two ZoneInfo constants you can use.

For another timezone related Bite, try Organize a meeting between timezones

Have fun and keep coding in Python!