[rrd-users] GPRINT date on Windows with RRDTool

Lars Rune Bjørnevik lrb at sysit.com
Mon Feb 6 00:58:54 MET 2006


Hi,
I'm having trouble using date / Time formats on Windows - Anyone having a clue?
 
My Code (Windows VB.net)
 
' Pop the time
RrdToolArg = RrdToolArg & " CDEF:st=in1,POP,TIME "
' Clean out NAN's
RrdToolArg = RrdToolArg & " CDEF:stC=in1,UN,1,st,IF "
' Get the start of current time series 
RrdToolArg = RrdToolArg & " VDEF:spStart=stC,FIRST "
 
'Put it on my graph
RrdToolArg = RrdToolArg & " COMMENT:""\n"""
RrdToolArg = RrdToolArg & " COMMENT:""Start """
RrdToolArg = RrdToolArg & " GPRINT:spStart:""%c"" "
 
Using the above code puts a well formed date and a unix time stamp (!) on my graph
 
But if I change the code to anything else:
RrdToolArg = RrdToolArg & " GPRINT:spStart:""%H\:%M %e/%b/%Y"" "
 
I get an error: ERROR: bad format for GPRINT in '%H:%M %e/%b/%Y'
 
Even if i use %C instead of %c i get an error...
 
Tried all suggestons in http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdgraph_graph.en.html#print without luck
 
I'm using rrdtool-1.2.10-win32-perl58.zip <http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.2.10-win32-perl58.zip> 
 
Any help greatly appreciated!
 
Lars
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list