Re: [Matplotlib-users] datestr2num, dateutil.parse and timezone problems

2007-10-11 Thread Charles Seaton
John, I would prefer to be able to use the power and flexibility of datestr2num and the underlying dateutil.parser, rather than writing my own parser. However, looking further at dateutil.parser.parse, it takes an argument tzinfos, which allows timezone names other than the local timezone and UTC

Re: [Matplotlib-users] datestr2num, dateutil.parse and timezone problems

2007-10-11 Thread John Hunter
On 10/11/07, Charles Seaton <[EMAIL PROTECTED]> wrote: > Any suggestions on how to get either matplotlib.dates.datestr2num or > dateutil.parser.parse to properly handle timezone information in the > datestring would be greatly appreciated. Not sure how to answer this question vis-a-vid dateutil.p

[Matplotlib-users] datestr2num, dateutil.parse and timezone problems

2007-10-11 Thread Charles Seaton
I am having some problems getting matplotlib.dates.datestr2num to handle timezones in the datestring. >import matplotlib >matplotlib.dates.datestr2num('Jan 1, 2007 12:00 PDT') 732677.837 >matplotlib.dates.datestr2num('Jan 1, 2007 12:00 PST') 732677.837 >matplotlib.dates.datestr2nu