|
Subject: |
RE: Epics Archiver Appliance requests and DST/Timezones |
|
From: |
"Manoussakis, Adamandios via Tech-talk" <[email protected]> |
|
To: |
EPICS Tech Talk <[email protected]> |
|
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 <[email protected]>
Sent: Wednesday, November 16, 2022 9:06 PM
To: Manoussakis, Adamandios <[email protected]>
Cc: Ralph Lange <[email protected]>; EPICS Tech Talk <[email protected]>; Jemian, Pete R. <[email protected]>; Abdalla Ahmad <[email protected]>
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
<2022>
2023
2024
2025
2026
- 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
<2022>
2023
2024
2025
2026
|