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  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Epics Archiver Appliance requests and DST/Timezones
From: "Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 28 Nov 2022 21:25:23 +0000
Thank you all for the suggestions, I think I have a better understanding now. 

-----Original Message-----
From: Michael Davidsaver <mdavidsaver at gmail.com> 
Sent: Wednesday, November 16, 2022 9:06 PM
To: Manoussakis, Adamandios <manoussakis1 at llnl.gov>
Cc: Ralph Lange <ralph.lange at gmx.de>; EPICS Tech Talk <tech-talk at aps.anl.gov>; Jemian, Pete R. <jemian at anl.gov>; Abdalla Ahmad <abdalla.ahmad at sesame.org.jo>
Subject: Re: Epics Archiver Appliance requests and DST/Timezones

On 11/15/22 11:37, Manoussakis, Adamandios via Tech-talk wrote:
> 2012-012-27*T18:00:00.000-000Z *or have the offset in the request 2012-012-27*T10:00:00.000-800Z. *But either way it looks like I need to account timezone/dst for the request, unless I am misunderstanding something horribly.

When providing an offset, leave off the trailing "Z".

On a Linux host, run:

> $ date -Isec
> 2022-11-16T20:50:55-08:00

to see an example for your currently configured place and time.

As others have said, I think you would do better to delegate this conversion to a timezone database, as accessed through your API of choice, and send only UTC times over the wire.

fyi. On Linux, it is easy enough to override timezone on a per-process basis with the $TZ environment variable.

> $ TZ=Brazil/East date -Isec
> 2022-11-17T01:55:20-03:00

cf. /usr/share/zoneinfo/ and "man tzset"


References:
Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
RE: Epics Archiver Appliance requests and DST/Timezones Abdalla Ahmad via Tech-talk
Re: Epics Archiver Appliance requests and DST/Timezones Ralph Lange via Tech-talk
RE: Epics Archiver Appliance requests and DST/Timezones Manoussakis, Adamandios via Tech-talk
Re: Epics Archiver Appliance requests and DST/Timezones Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: How to: IOC reading information from file? Michael Davidsaver via Tech-talk
Next: RE: Using one substitution file for multiple template files Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Epics Archiver Appliance requests and DST/Timezones Michael Davidsaver via Tech-talk
Next: Phoebus liuxiaomin via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 28 Nov 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·