Re: Wrong year displayed with time on a TGraph axis

From: Olivier Couet <couet_at_mail.cern.ch>
Date: Mon, 7 Mar 2005 18:21:01 +0100 (CET)

 Hi Brett

> Last week %Y showed "2030" (as %y showed "30") but today this works as
> does my original test macro. Our devel version of root is updated
> nightly so maybe some fix went in? If so, thanks.

 For me the command:

    gStyle->SetTimeOffset(0);

 is still needed to have the correct year (2005) in that macro.

> http://root.cern.ch/root/html/TAxis.html#TAxis:SetTimeFormat
>
> shows:
>
> This function allows also to define the time offset. It is done
> via %F which should be appended at the end of the format string.

 Ho, I see your point now. I guess that is ok because the SetTimeFormat %F control is the first one found when scanning from the end of the string so if there is one before it should be fine.

 Cheers, Olivier

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Mon Mar 07 2005 - 18:21:06 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET