[ROOT] Time format on axis

From: Salvatore Rappoccio (rappoccio@heplcdf1.harvard.edu)
Date: Fri Dec 20 2002 - 16:13:56 MET


Hi,

I am trying to histogram data points at specific times. I can set the 
X-axis to accept the data as "time_t", but it keeps displaying, for 
example, "12/20/27" instead of "12/20/02". I know this is because time_t 
stores the number of seconds since a certain epoch (1975, in this case, I 
guess). I would like to know how to get the axis to display the correct 
time. I guess I could just add the number of seconds in 75 years (so it 
displays 02), but is there anything more elegant (and general) than 
that?

Thanks,
Sal Rappoccio



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET