Experimental Physics and Industrial Control System
|
Hi Andrew,
Andrew Johnson wrote:
Yes, there's a stringin device support delivered as part of Base since
R3.14.5 that you can give an strftime string to. Eg:
record(stringin, "$(user)now")
{
field(DESC, "Current time and date")
field(DTYP, "Soft Timestamp")
field(INP, "@%Y-%m-%d %H:%M:%S.%03f")
}
If you need the fields as integers rather than strings you can use one
stringin record per field and rely on the numeric conversions built
into the database links to convert the VAL field of each record into
the appropriate integer -- not wildly efficient, but functional.
As the VxWorks strftime() does not support "%s" (seconds since the
epoch), is there another reasonable way to get this number from the
timestamp of a record into the value field of the same (or another) record?
Ralph
- Replies:
- Re: Accessing Date and Time information Andrew Johnson
- References:
- Accessing Date and Time information David Dudley
- Re: Accessing Date and Time information Andrew Johnson
- Navigate by Date:
- Prev:
Re: JCA Library usage David Dudley
- Next:
Re: problem using streams with asyn for Agilent E5810A Ethernet->GPIB Rodney R. Porter
- 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: Accessing Date and Time information Andrew Johnson
- Next:
Re: Accessing Date and Time information Andrew Johnson
- 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, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|