Python timezone issue?

Posted by Timmy on Stack Overflow See other posts from Stack Overflow or by Timmy
Published on 2010-05-20T22:45:24Z Indexed on 2010/05/20 22:50 UTC
Read the original article Hit count: 220

Filed under:
|

im having troubles with parsing a feed and getting the time. i am using dateutil.parser

from dateutil.parser import parse

print updated, parse(updated ), parse( updated ).utcoffset()

this should be a time in cali, output

2010-05-20T11:00:00.000-07:00 2010-05-20 11:00:00.000000-07:00 -1 day, 17:00:00

why is the offset -1 day 17 hours?

this is causing me issues when i try to do things with it

© Stack Overflow or respective owner

Related posts about python

Related posts about datetime