For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
13 1 1 3

Time format in FID 3855 QUOTIM_MS

FID 3855.pngHi Team,

Would you share your insights why real time data feed send the value on FID 3855 QUOTIM_MS in integer format instead of hh:mm:ss:000 format?

and how to programmatically convert this to a timestamp, and to officially sign off that it is IN MILLISECONDS time format?

FID 3855.png

Thanks & Regards,

Xia

elektronrefinitiv-realtimeelektron-sdkrrt
fid-3855.png (54.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
62k 173 45 65

@XIA LIU

The values in those fields (with suffix "_MS" and UINT64) represent timestamps in milliseconds within a day. You can use the below logic to convert milliseconds within a day to time.

int msec = time_ms%1000; int seconds = (((int)(time_ms/1000)) % 60); int minutes = (((int)(time_ms/60000)) % 60); int hours = (((int)(time_ms/3600000)) % 24); 

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.