EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS UTC Time conversion
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: Eric Norum <[email protected]>
Date: Tue, 16 Apr 2013 16:05:55 -0500
Hi Eric,

On 2013-04-16 Eric Norum wrote:
> I'm trying to convert an EPICS time stamp into a string -- but in UTC, not
> the local time zone.

> The resultant string is one hour off.  It's as if the routines above are
> trying to apply daylight savings time correction to UTC.

I'm not sure if this is the source of your problem, but there is one very 
subtle gotcha about the ANSI epoch (1 Jan 1970) that I discovered years ago 
which might contribute to it: On that date, the UK was actually observing 
daylight savings time, so the local time in London was *not* the same as UTC.

It's also possible that the epicsTimeToGMTM() routine that you're using has a 
bug in it, there is no explicit test for it in libCom/test and I doubt if it's 
had very much real-world usage.

BTW %T is not portable; IIRC vxWorks and Windows do not support it, so don't 
use it in anything that might run there.

HTH,

- Andrew
-- 
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair

Replies:
RE: EPICS UTC Time conversion Mark Rivers
References:
EPICS UTC Time conversion Eric Norum

Navigate by Date:
Prev: Check Box widget in CSS BOY Hovanes Egiyan
Next: RE: EPICS UTC Time conversion Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EPICS UTC Time conversion Eric Norum
Next: RE: EPICS UTC Time conversion Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·