different time tuple format

Maksim Kasimov kasimov at i.com.ua
Wed Jun 8 10:58:52 EDT 2005


yes, i agree, on my WinXP it gives another values.

but my question is how to setup the python (or OS) to make it gives the same results when i call
time.strptime("2005-06-07 15:07:12", "%Y-%m-%d %H:%M:%S")
on various servers (and maybe with various OS)?

for now, i can't get it even with the same OS.
and i would like to set time string exactly as "2005-06-07 15:07:12", without "CEST", "EEST" and so on, because as you've notice before, it is different on a variuos systems


wittempj at hotmail.com wrote:
> The names are at least platform specific, see below the names of the
> timezones on my Windows NT 4 box
> 
> *** Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
> (Intel)] on win32
> *** Type "help", "copyright", "credits" or "license" for more
> information.
> *** >>> import time
> *** >>> print time.tzname
> *** ('W. Europe Standard Time', 'W. Europe Daylight Time')
> *** >>>
> 


-- 
Best regards,
Maksim Kasimov
mailto: kasimov at i.com.ua



More information about the Python-list mailing list