We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 73. Organize a meeting between timezones (pytz)

14 out of 14 users completed this Bite ...
Will you be Pythonista #15 to crack this Bite?
Average Bite difficulty 1-10 rating: 7.0
» Up for a challenge? 💪

Help PyBites community friends find a reasonable common time to meet!

Complete the function below receiving a UTC datetime and one or more timezones (US/Arizona, Europe/Madrid, etc).

Use pytz to see if the given datetime is in MEETING_HOURS for all provided timezones. Return a boolean.

If a wrong timezone is given raise a ValueError.

See the TESTS tab for True/False scenarios. Good luck and have fun!

Github login button