Experimental Physics and
| |||||||||||||||||
|
David Dudley wrote: Is there a method that allows access of Date and Time information from inside the database? 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. - Andrew -- The right to be heard does not automatically include the right to be taken seriously. -- Hubert H. Humphrey
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |