Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8259

Re: parse date string having "EDT"

From Tim Roberts <timr@probo.com>
Newsgroups comp.lang.python
Subject Re: parse date string having "EDT"
Date 2011-06-22 20:55 -0700
Organization Providenza & Boekelheide, Inc.
Message-ID <76e50717e469e3tbuurpq39fn7frs6u76i@4ax.com> (permalink)
References <b503ac78-b8dd-49bc-b457-c9748d903452@glegroupsg2000goo.googlegroups.com> <3ac007lr1fvviek12a96t0oqoo1g6dee5f@4ax.com> <87boxrpvds.fsf@benfinney.id.au>

Show all headers | View raw


Ben Finney <ben+python@benfinney.id.au> wrote:

>Tim Roberts <timr@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).

I do keep forgetting that Python's strptime does not just pass through to
the C library.  C's strptime does not support %Z.
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

parse date string having "EDT" Junaid P V <junu.pv@gmail.com> - 2011-06-20 19:56 -0700
  Re: parse date string having "EDT" Ben Finney <ben+python@benfinney.id.au> - 2011-06-21 14:12 +1000
  Re: parse date string having "EDT" Tim Roberts <timr@probo.com> - 2011-06-20 22:52 -0700
    Re: parse date string having "EDT" Ben Finney <ben+python@benfinney.id.au> - 2011-06-21 16:10 +1000
      Re: parse date string having "EDT" Tim Roberts <timr@probo.com> - 2011-06-22 20:55 -0700

csiph-web