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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: timestamp question |
From: | "Jeff Hill" <[email protected]> |
To: | "'Kevin Tsubota'" <[email protected]>, "'EPICS-tech-talk \(E-mail\)'" <[email protected]> |
Date: | Tue, 27 Aug 2002 08:58:12 -0600 |
Kevin, You mention that "when I use the camonitor (from base) I get timestamps 20yrs in the future". What do you see when you type "date" on the console of the IOC that camonitor is connecting to? Jeff
--- Begin Message ---Title: timestamp question
Subject: timestamp question From: "Kevin Tsubota" <[email protected]> To: "EPICS-tech-talk \(E-mail\)" <[email protected]> Date: Mon, 26 Aug 2002 20:11:58 -0600
Hi All,
I have a channel access application that we inherited from someone else a
long time ago that is
returning a timestamp of seconds since 1/1/1970. This application also has
its own camonitor
utility that returns the current date. However when I use the base
camonitor I get timestamps 20yrs
in the future.Upon further investigation I found comments that EPICS uses 1/1/1990 as its
epoch. So I'm guessing
here that EPICS camonitor is taking the timestamp from my application and
adding 20yrs. Is this
correct or am I _way_ out in left field?Thanks in advance.
KevinCode snippet from EPICS R3.13.0Beta12/base/include/tsDefs.h
/*--------------------------------------------------------------------------
-
-
* TS_STAMP
*
* This is the form taken by time stamps in GTACS, and is the form used
* by the various tools used for dealing with time stamps.
*
* The time stamp represents the number of nanoseconds past 0000 Jan 1,
199
0,
* GMT (or UTC, if you prefer).
*
*---------------------------------------------------------------------------
-
*/
typedef struct {
epicsUInt32 secPastEpoch; /* seconds since 0000 Jan 1, 1990 */
epicsUInt32 nsec; /* nanoseconds within second */
} TS_STAMP;
--- End Message ---