Re: [ROOT] localtime in axis time offset not good

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Tue Nov 25 2003 - 11:24:41 MET


On Tue, 25 Nov 2003, Damir Buskulic wrote:

> Hi,
> 
> I just came accross a problem in the display of time dependent data. It 
> appears that the time offset on the various axis is expressed in local 
> time (function localtime()). When one sends time dependent data to 
> colleagues overseas, the time considered by the axis will be their 
> localtime, not the one at the source, hence shifted by a few hours.
> 
> In any case, it seems to me that one should use the gmtime() function 
> to strictly use and display UTC time. Of course, this means a shift by 
> a few hours in the data, but this time will be the same all around the 
> world.
> Perhaps should we introduce a SetTimeOffsetUTC() ? In that case, the 
> string representing the time offset (after the %F for the experts...) 
> should probably note it with a "UTC" somewhere.


May be an option in the existing function SetTimeOffset would work if 
it has a default value equal to "local".

O.

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET