I'm hoping you can help me confirm/deny a bug in pylab's date2num() function.
My assumption (this may be wrong) is that this function is meant to be compatible with the MATLAB function date2num(). However, in ipython I can execute: --------- import datetime import pylab as p dts = datetime.datetime.now() serialts = p.date2num(dts) print dts 2008-11-16 12:03:20.914480 print serialts 733362.502325 ------------ If I then copy this serialts value into MATLAB I get: ---------- datestr(733362.502325) 16-Nov-2007 12:03:20 ---------- Note that the year is off by one. -- View this message in context: http://www.nabble.com/Bug-in-pylab.date2num-tp20527541p20527541.html Sent from the matplotlib - devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel