question

Upvotes
Accepted
588 14 21 19

TRTH Java API Timestamp

We use TRTH Java API to send the TimesAndSales request. The timestamp is display in milliseconds (Example : 08:00:01.784). We want to change that, and we like to receive a timestamp which is display in seconds (Example : 08:00:01).

I read the API documentation and the only parameter available for the TimeStamp seems to be <displayMicroseconds>, to display message timestamps in microseconds or in milliseconds?

My question is : is there a way to display the TimeStamp in seconds (Example : 08:00:01) with the TRTH API ?

tick-history-rest-apitime-stamp
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

· Write an Answer
Upvotes
Accepted
322 11 16 21
TRTH, by default, gives out the data in milliseconds with an option to increase the granularity to microseconds (using <displayMicroseconds>). TRTH does not give the option to extract the data in (simple) seconds format. The only way to get the timestamp in seconds is to extract the data first in the default format (in milliseconds) and to change it in the excel file to seconds (?hh:mm:ss? format).
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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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