Problem putting the date on plots

Hi,

I have a root tree that I am attaching to this e-mail, which contains a column with a unix time:

[code]root [2] ICARASDATA.Scan(“STIME/1000”, “”, “colsize=20”)


  • Row * STIME/1000 *

  •    0 *           1172776835 *
    
  •    1 *           1172776838 *
    
  •    2 *           1172776842 *
    
  •    3 *           1172776846 *
    
  •    4 *           1172776849 *
    
  •    5 *           1172776853 *
    

[/code]

This unix time starts on march 1st in the evening:

$ date -u -d "1970-01-01 1172776835 seconds" jeudi 1 mars 2007, 19:20:35 (UTC+0000)

However, when I do a plot:

root [3] ICARASDATA.Draw("STIME/1000")

and then I click on x axis and “SetTimeDisplay”, the date starts on feb 29th (which by the way does not exist)

Is there any solution to this problem?

Thanks

Pierre-François
tmp-pra-2007-03-02.root (13.1 KB)

{
   TFile f("tmp-pra-2007-03-02.root");
   ICARASDATA.Draw("STIME/1000>>h1");
   h1->GetXaxis()->SetTimeDisplay(1);
   h1->GetXaxis()->SetTimeFormat("%d\/%m\/%Y -- %H:%M");
   h1->GetXaxis()->SetTimeOffset(0);
   h1->GetXaxis()->SetLabelSize(0.02);
}