parse date string having "EDT"

Ben Finney ben+python at benfinney.id.au
Tue Jun 21 02:10:39 EDT 2011


Tim Roberts <timr at probo.com> writes:

> Right, because strptime doesn't support %Z.

Au contraire:

    Support for the %Z directive is based on the values contained in
    tzname and whether daylight is true. Because of this, it is
    platform-specific except for recognizing UTC and GMT which are
    always known (and are considered to be non-daylight savings timezones).

    <URL:http://docs.python.org/library/time.html#time.strptime>

-- 
 \            “Human reason is snatching everything to itself, leaving |
  `\                     nothing for faith.” —Saint Bernard, 1090–1153 |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list