Python datetime format mask -
Python datetime format mask -
i have next datetime format parse datetime object in python:
wed, 13 jul 2011 09:11:14 +0200
what format mask should utilize +0200
part? means +2 hours.
the thing can't find man page on net datetime format masks.
it depends fro mean "parsing". should happen timezone information?
if intend purely discard it, can instantiate naïve datetime object suggested fredrik in answer.
if intend retain info must create aware datetime object setting tzinfo
attribute of datetime
instance. this relevant documentation.
hth!
python
Comments
Post a Comment