TDatime is based on the Unix time on Unix systems. There are various setters (see the class doc). The changes by Olivier are posterior to 3.05/05. Use 3.05/07. Please communicate with Olivier Couet for further exchanges on this question. Olivier will be back at work the first week of September. Rene Brun Dariusz Miskowiec wrote: > > Dear Rene, > > Many thanks for this recommendation. However, the variable > I want to display is the standard UNIX time, i.e. the time > offset I should use is exactly 0. I do not think it helps > if I generate this zero via TDatime(1970,01,01,00,00,00), > excuse me, this even cannot be done at all because TDatime > does not accept such early dates. So I insist: root 3.05/05 > behaves differently from older versions (3.03/07), and in > particular seems to have a problem with time offsets before > 1996. It looks to me like it uses internally TDatime for > some reason. > > Naively I would think that plotting things versus standard > UNIX time is one of the main applications of the time display > feature and thus I am a little surprised that I am having > all this trouble... > > Best regards > Dariusz Miskowiec > > Rene Brun wrote: > > Hi Dariusz, > > > > You should set the time offset with a statement like > > TDatime t; > > gStyle->SetTimeOffset(t.Convert()); > > > > see examples at : http://root.cern.ch/root/HowtoTimeAxis.html > > > > Olivier Couet has made several improvements in the time axis > > in the recent releases. see the above URL for more details. > > > > Rene Brun > > > > On Thu, 21 > > Aug 2003, > > Dariusz Miskowiec wrote: > > > > > >>Dear Rooters, > >> > >>It seems that > >> > >>gStyle->SetTimeOffset(0); > >>hi=new TH1F("nic","nic",10,0,1e8); > >>hi->GetXaxis()->SetTimeDisplay(1); > >>hi->GetXaxis()->SetTimeFormat("%y:%m:%d"); > >>hi->Draw(); > >> > >>produces very different numbers on the horizontal axis when > >>ran with root 3.03/07 and 3.05/05 on CERN lxplus. The newer > >>root version gives a wrong result. > >> > >>Best regards > >>Dariusz Miskowiec > >> > >> > > -- > +-----------------------------------------------------------------+ > + Dariusz Miskowiec E-mail: D.Miskowiec@gsi.de + > + GSI, Planckstr. 1 Phone: 0049-6159-712-133 + > + D-64291 Darmstadt Fax: 0049-6159-712-989 + > +-----------------------------------------------------------------+
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET