timedelta problem
Denis McMahon
denismfmcmahon at gmail.com
Thu Aug 14 23:51:18 EDT 2014
More information about the Python-list mailing list
Thu Aug 14 23:51:18 EDT 2014
- Previous message (by thread): timedelta problem
- Next message (by thread): timedelta problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 15 Aug 2014 10:24:47 +0800, luofeiyu wrote: > import datetime > t1='Sat, 09 Aug 2014 07:36:46 -0700' > t2='Sat, 09 Aug 2014 07:36:46 +0700' > datetime.datetime.strptime(t1,"%a, %d %b %Y %H:%M:%S %z") Are you sure? When I try this I get: ValueError: 'z' is a bad directive in format '%a, %d %b %Y %H:%M:%S %z' > datetime.datetime(2014, 8, 9, 7, 36, 46, > tzinfo=datetime.timezone(datetime.timedelta(-1, 61200))) And this: AttributeError: 'module' object has no attribute 'timezone' -- Denis McMahon, denismfmcmahon at gmail.com
- Previous message (by thread): timedelta problem
- Next message (by thread): timedelta problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list