You can use the pytz
module to get a list of all available timezones and then use datetime
module to get the current time for each timezone.
Here's an example code snippet:
main.py323 chars12 lines
This code will output the current time in each timezone in the format Current time in timezone_name: current_time
.
gistlibby LogSnag