Experimental Physics and Industrial Control System
|
Good idea, but doesn't seem to help:
timestamp.secPastEpoch = 1366124582 - POSIX_TIME_AT_EPICS_EPOCH; timestamp.nsec = 0; epicsTimeToGMTM(&tm, &nsec, ×tamp); tm.tm_isdst = 0; epicsTimeFromTM(&utc, &tm, 0); epicsTimeToStrftime(cbuf, sizeof cbuf, "%F_%H:%M:%S", &utc); printf("%s\n", cbuf); produces 2013-04-16_16:03:02
But Tue Apr 16 15:03:02 UTC 2013
Hi Eric,
Perhaps force the isdst flag to 0 in between calls:
epicsTimeToGMTM(&tm, &nsec, ×tamp);
tm.tm_isdst = 0;
epicsTimeFromTM(&utc, &tm, 0);
|
- Replies:
- RE: EPICS UTC Time conversion Kim, Kukhee
- Re: EPICS UTC Time conversion Andrew Johnson
- Re: EPICS UTC Time conversion Till Straumann
- References:
- EPICS UTC Time conversion Eric Norum
- RE: EPICS UTC Time conversion Allison, Stephanie
- Navigate by Date:
- Prev:
RE: EPICS UTC Time conversion Allison, Stephanie
- Next:
RE: autosave limitation? Emmanuel Mayssat
- 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
- Navigate by Thread:
- Prev:
RE: EPICS UTC Time conversion Allison, Stephanie
- Next:
RE: EPICS UTC Time conversion Kim, Kukhee
- 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
|
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|