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
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
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)
> >
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
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[:-