different time tuple format
Maksim Kasimov
kasimov at i.com.ua
Tue Jun 7 14:10:14 EDT 2005
hi all, sorry if i'm reposting
why time.strptime and time.localtime returns tuple with different DST (9 item of the tuple)?
is there some of setting to fix the problem?
Python 2.2.3 (#1, May 31 2005, 11:33:52)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime("2005-06-07 21:00:00", "%Y-%m-%d %H:%M:%S")
(2005, 6, 7, 21, 0, 0, 6, 1, 0)
>>> time.localtime()
(2005, 6, 7, 21, 2, 39, 1, 158, 1)
>>>
--
Best regards,
Maksim Kasimov
mailto: kasimov at i.com.ua
More information about the Python-list
mailing list