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 ?

Best Answer

  • LarryT
    Answer ✓
    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).