Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"time" format in ETS2 JSON file #140

Open
mrsrmn opened this issue Dec 30, 2020 · 1 comment
Open

"time" format in ETS2 JSON file #140

mrsrmn opened this issue Dec 30, 2020 · 1 comment

Comments

@mrsrmn
Copy link

mrsrmn commented Dec 30, 2020

What is the format of "time" in the telemetry server JSON file? I want to format it into normal time but I couldn't find the formatting of it.

image

@KS-HTK
Copy link

KS-HTK commented Apr 17, 2022

It is just a utc date/time.
yyyy-mm-ddThh:MM:ss.s+z

  • yyyy is year
  • mm is month
  • dd id day
  • T is fixed seperator
  • hh is hour
  • MM is minute
  • ss is seconds
  • .s(ss) (optional) is fractional seconds
  • +z (optional) is time zone

the Z standing for the Zulu time zone (UTC+-0) should preferably have been omitted.

It is already "normal" time, depending on you're definition of normal. Since the Game does not have time zones I do not see what you want to convert it to.
It should not be converted to UNIX timestamps because of the year being to far back.
If you want to convert it to AM/PM time just subtract 12 from the hh part if it is >12 and display a pm or am as required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants