Countdown Timer
Could someone tell me what modules I should look at in the Python Manual to create a countdown timer that counts the years, days, hours, minutes, and seconds to a given day? Thanks in advance! I'm fairly new to the language, so please put it in newbie terms. I only know the basics. -- http://mail.python.org/mailman/listinfo/python-list
Re: Countdown Timer
take a look at the time module. -- http://mail.python.org/mailman/listinfo/python-list
Re: Countdown Timer
Thank you! -- http://mail.python.org/mailman/listinfo/python-list
Countdown timer for different timezones
Hi! I'd like to implement a countdown timer on a webite. It should show the months, days, hours, minutes and seconds until a given date and time. So far it's not really difficult, but this website will be used from different time zones, what will make a difference of 10 hours, if I use the time-information from the client. The event will take place at one fixed moment which is worldwide the same. Does anyone know a way to solve this time-zone-problem? Regards and thanks for your ideas Dirk -- http://mail.python.org/mailman/listinfo/python-list
Re: Countdown timer for different timezones
In <[EMAIL PROTECTED]>, Dirk Hagemann wrote: > I'd like to implement a countdown timer on a webite. It should show the > months, days, hours, minutes and seconds until a given date and time. > So far it's not really difficult, but this website will be used from > different time zones, what will make a difference of 10 hours, if I use > the time-information from the client. The event will take place at one > fixed moment which is worldwide the same. > > Does anyone know a way to solve this time-zone-problem? I don't think there's a reliable way to get the time zone information from the viewer of the website with just HTTP. So you need a JavaScript solution I guess. Send the end time as UTC time to the browser an use JavaScript's `Date` object to display the countdown in local time. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list