Results 1 to 2 of 2

Thread: How to parse session end_time from sms_stats

  1. #1
    Kart Driver
    Join Date
    Jul 2019
    Posts
    10
    Platform
    PC

    How to parse session end_time from sms_stats

    Hello,

    In sms_stats_data.json it is recorded the session end time like this:

    Code:
    "stages" : {
              "race1" : {
                "end_time" : 1565158567,
    ...
    I know this integer means 2019-08-07 05:06:57 (UTC), but I don't know how to parse it in my own app and convert it in datetime. What is this integer? at the begining I was believing it was total seconds from 01/01/1900, but I was wrong. Could anybody help me?

    Thanks in advance.

  2. #2
    Kart Driver
    Join Date
    Jul 2019
    Posts
    10
    Platform
    PC
    OMG, is seconds from 01/01/1970... sorry for stupid question
    The following user likes this Post: MartinMWWebb


Similar Threads

  1. sms_stats addon configuration
    By Doberk in forum Third-Party Apps & API Discussion
    Replies: 2
    Last Post: 24-07-2019, 18:19
  2. Dedicated server sms_stats fix
    By Brado23 in forum Multiplayer
    Replies: 5
    Last Post: 30-11-2017, 13:37
  3. sms_stats CollisionMagnitude
    By Krampus in forum Multiplayer
    Replies: 1
    Last Post: 16-09-2017, 12:59
  4. Replies: 24
    Last Post: 16-02-2016, 01:28
  5. Replies: 4
    Last Post: 29-09-2015, 14:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •