Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Eric Firing
On 2013/09/30 3:45 AM, Mark Bakker wrote: > The design of the function datestr2num, unfortunately, has an undesired > side-effect. > Today (September 30) I cannot convert monthly data, as February doesn't > have 30 days. > Conversion of: > datestr2num('2000-02') > Gives an error: > ValueError: day

Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Mark Bakker
The design of the function datestr2num, unfortunately, has an undesired side-effect. Today (September 30) I cannot convert monthly data, as February doesn't have 30 days. Conversion of: datestr2num('2000-02') Gives an error: ValueError: day is out of range for month Should I file a bug report or a

Re: [Matplotlib-users] datestr2num of year and month

2013-09-19 Thread Goyo
2013/9/19 Mark Bakker : > Hello List, > > When I use datestr2num('2010-05') it nicely converts that to a number > representing the date. > When I convert that number back with num2date, it turns out it sets the day > to the 19th of the month. The dime is 0:00:00. > Any reason it is set to the 19th

[Matplotlib-users] datestr2num of year and month

2013-09-19 Thread Mark Bakker
Hello List, When I use datestr2num('2010-05') it nicely converts that to a number representing the date. When I convert that number back with num2date, it turns out it sets the day to the 19th of the month. The dime is 0:00:00. Any reason it is set to the 19th instead of the first? Maybe because t