Problems reading date format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnuplot (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnuplot
I've recently struggled with parsing some stuff from my log files. After discovering that three-letter name of month isn't parseable by gnuplot, I tried to just plot for one month, using a timefmt of "%d %H:%M:%S". Gnuplot accepts this, but interprets the "%d" value as seconds since Jan 2000, and ignores the time information. Prepending a numerical month, and using "%m/%d ..." works.
My main issue is that a single %d should be interpreted as day-of-month (using current year and month if not otherwise specified)
In addition, I think gnuplot should provide better error reporting when date parsing fails, and especially if timefmt tries to use unsupported fields like %b or %h, it should be easy to provide something better than "x range is invalid".
Ubuntu 10.04, gnuplot 4.2 patchlevel 6 from deb version 4.2.6-1