The record conversion uses your OS's strftime() routine for everything except the "%f" format conversion. You may need to use %09f for that fractional part though to get the right output — I haven’t checked
but I suspect %f will convert a fraction of 1 nanosecond as the string "1" whereas after the decimal point you would need "000000001".
- Andrew
On 10/21/24, 11:11 AM, "Tech-talk" <tech-talk-bounces at aps.anl.gov> wrote:
Thanks all for the answers.
I expected something about the formatting, In the example record:
field(INP, "@%s.%f")
seems to do the work fine but I tried playing with it and didn't get very far. Even though it seems similar to c format strings It doesn't seem to have the same meaning.
Anyway, it works the way it's intended to.
Cheers,
Marco
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
on behalf of Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Sent: 19 October 2024 17:10:19
To: EPICS Tech Talk
Subject: Re: Help understanding DTYP Soft Timestamp
[...]
I would expect to find information about the DTYP="Soft Timestamp" device
support here, or if not here, at least a link to information about it here.
[...]
I think it would be good for the reference manual
to be consistent in where it documents fields for each record.
Happy to review your pull requests.
|