Re: Time Zone application after strptime?

2008-03-12 Thread M.-A. Lemburg
Jim Carroll wrote: > M.-A. Lemburg egenix.com> writes: > >> On 2008-03-07 22:24, Jim Carroll wrote: >>> It's taken me a couple of hours to give up on strptime >>> with %Z for recognizing >>> time zones... but that still leaves me in the wrong zone: >>> >>> How can I use the "PST" (or any other t

Re: Time Zone application after strptime?

2008-03-11 Thread [EMAIL PROTECTED]
On Mar 11, 11:00 am, Jim Carroll <[EMAIL PROTECTED]> wrote: (snipped) > > p.parse("10:29:52 Feb 29, 2008 PST", tzinfos=zones) > datetime.datetime(2008, 2, 29, 10, 29, 52, tzinfo=tzoffset('PST', -28800)) > > But I cannot figure out how to get dateutil to use the > zoneinfo file that it includes in

Re: Time Zone application after strptime?

2008-03-11 Thread Jim Carroll
M.-A. Lemburg egenix.com> writes: > > On 2008-03-07 22:24, Jim Carroll wrote: > > It's taken me a couple of hours to give up on strptime > > with %Z for recognizing > > time zones... but that still leaves me in the wrong zone: > > > > How can I use the "PST" (or any other time zone name) > >

Re: Time Zone application after strptime?

2008-03-07 Thread M.-A. Lemburg
On 2008-03-07 22:24, Jim Carroll wrote: > It's taken me a couple of hours to give up on strptime with %Z for recognizing > time zones... but that still leaves me in the wrong zone: > > def paypal_to_mysql_date(ppDate): > # a typical paypal date is 10:29:52 Feb 29, 2008 PST > date_parts = p

Time Zone application after strptime?

2008-03-07 Thread Jim Carroll
It's taken me a couple of hours to give up on strptime with %Z for recognizing time zones... but that still leaves me in the wrong zone: def paypal_to_mysql_date(ppDate): # a typical paypal date is 10:29:52 Feb 29, 2008 PST date_parts = ppDate.split() withouttz = " ".join(date_parts[:-