|
From: Rp3 <rpw...@gm...> - 2008-11-28 01:17:13
|
Rp3 wrote: > > I have some data that looks like this. > > 10-25-2008 23:15 0072.37 0064.27 0048.65 0053.70 > 10-25-2008 23:30 0072.26 0064.16 0048.30 0053.25 > 10-25-2008 23:45 0071.92 0064.16 0047.96 0052.91 > 10-26-2008 0:0 0071.92 0064.05 0047.85 0052.57 > 10-26-2008 0:15 0071.70 0063.82 0047.17 0052.25 > 10-26-2008 0:30 0071.60 0063.60 0046.95 0051.90 > > As you can see it is date then time, then some temperature data. > > So I try to set the timefmt string to match as this > set timefmt "%m-%d-%Y %H:%M" > > but when I re-run the plot I get this error? > tempdata.dat:10: illegal month > > Which happens to be the first line with the time reference of 0:0 > (midnight). > > I have read through the dox and timefmt is supposed to read hours and mins > like this but it seems to not work, and the error message has me more > baffled as it references a "illegal month"?? > > Any help would be appreciated. > > I guess I should have shown the complete begining of the file. Here it is. #date, time, inside temp, garage temp, outside temp, attic temp 10-25-2008 22:8 0072.26 0064.95 0050.10 0055.72 10-25-2008 22:15 0072.15 0064.95 0050.00 0055.50 10-25-2008 22:30 0072.15 0064.85 0049.65 0055.05 10-25-2008 22:45 0072.37 0064.61 0049.31 0054.60 10-25-2008 23:0 0072.37 0064.40 0049.10 0054.05 10-25-2008 23:15 0072.37 0064.27 0048.65 0053.70 10-25-2008 23:30 0072.26 0064.16 0048.30 0053.25 10-25-2008 23:45 0071.92 0064.16 0047.96 0052.91 10-26-2008 0:0 0071.92 0064.05 0047.85 0052.57 10-26-2008 0:15 0071.70 0063.82 0047.17 0052.25 10-26-2008 0:30 0071.60 0063.60 0046.95 0051.90 10-26-2008 0:45 0071.36 0063.37 0046.61 0051.56 10-26-2008 1:0 0071.15 0063.15 0046.27 0051.11 10-26-2008 1:15 0070.91 0062.92 0045.95 0050.77 10-26-2008 1:30 0070.80 0062.92 0045.50 0050.32 Now you can see line 10 is the first with 0 as an hour, but looking at some of your replies it seems the %H in the timefmt string is looking for two chars, so I guess I will have to change my perl program to do this? Hmm Interesting. I guess that is what I will do, modify the program to make the hours always two digits? Unless someone else has a suggestion? :) -- View this message in context: http://www.nabble.com/timefmt-question-tp20703627p20727716.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |