when i display a generated .jls file, the time is back at the “epoch”….
instead, i want to display a different time value…. nothing more….
when i display a generated .jls file, the time is back at the “epoch”….
instead, i want to display a different time value…. nothing more….
The Joulescope UI today uses the UTC time from the JLS file. If no time is found, it uses the JLS & Joulescope time epoch 2018-01-01T00:00:00Z. See time.h.
The Joulescope UI could allow you to specify an arbitrary time offset for a JLS file. This feature does not exist today. It’s loosely related to issue #220.
The easiest solution today is to add the UTC time to the JLS file when you record it. Simply call jls_twr_utc See source or doc. While you can add multiple entries, which can account for clock drift, you only need to call once with the UTC time for the first sample_id.
Does this work for you?
with some help from the time.h macros, my JS binding now supports this capability….