python : in which timezone is it a specific time right now?
Posted
by kevin
on Stack Overflow
See other posts from Stack Overflow
or by kevin
Published on 2010-05-11T19:15:43Z
Indexed on
2010/05/11
19:24 UTC
Read the original article
Hit count: 215
i have users from all timezones, and i want to send out alerts at around 8AM in each users respective timezone.
i need a python script that runs every hour [in a cron job] and i need to find out at which timezone it is 8AM right now, and i can use that info to select the users that have to receive the alerts.
how do i go about doing this? there seems to be gmt+14 to gmt-12 that is 27 timezones, and there are only 24 hours in a day!
© Stack Overflow or respective owner