EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Timestamp record?
From: Andrew Johnson <[email protected]>
To: Jeff Gebhardt <[email protected]>
Cc: [email protected]
Date: Tue, 10 Jan 2006 15:38:21 -0600
Mark Rivers wrote:
All records report back the time when they processed, or more accurately the time when they called recGblGetTimeStamp, which is typically done just before posting monitor. You just need to use the proper channel access functions to retrieve that information.

However if you need the result as a string for something like an MEDM screen, there is stringin device support that has shipped with Base since R3.14.5 to convert the record's timestamp into the VAL field of the string record. Set the stringin's DTYP to "Soft Timestamp" and INP to the epicsTimeToStrftime() format string for the string conversion you want, for example:
field(INP, "@%b %d, %Y %H:%M:%S.%09f")


- Andrew
--
* * Matt Santos / / For a Brighter America * *

References:
RE: Timestamp record? Mark Rivers

Navigate by Date:
Prev: RE: Timestamp record? Jeff Hill
Next: RE: Timestamp record? Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Timestamp record? Jeff Hill
Next: Re: Timestamp record? Ned Arnold
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·