1

I am retrieving data of certain events from an API. And I came across this super strange 8 digit number (some sort of timestamp most probably) but I can not make any sense of what those numbers are. The API documentation wasn't kind enough to tell details of this particular duration field.

Here is the portion of API response:

            "created_date": "2021-10-06T15:28:56.104897",
            "custom_event_name": null,
            "dev_fee_payment_event": null,
            "duration": "15541075",
            "ending_price": "2690000000000000000",
            "event_type": "created",

What I have tested so far, and have concluded is that it CAN NOT be the:

  1. UNIX epoch
  2. Number of seconds
  3. Number of milli/micro seconds.

This is an example full json response. And this is the API documentation link

Any idea what this duration field could possibly signify?

Hammad
  • 529
  • 7
  • 17
  • What duration would you typically expect? – FObersteiner Oct 31 '21 at 16:47
  • mostly 155XXXXX - 157XXXXX some other examples are 15541075, 15724892, 15658466, 15722036, 15724891 – Hammad Nov 01 '21 at 00:48
  • most probably it is a recorded interval in some format starting from the `created_date` – Hammad Nov 01 '21 at 00:51
  • 1
    Sorry I meant what you'd consider a reasonable duration, like an hour, a day, or a week. Maybe you can also find a clue on their SDK's code on github? – FObersteiner Nov 01 '21 at 08:40
  • 1
    Few hours or even a day or 2 would be a reasonable duration time. And nice suggestion! I will surely check out the GitHub code – Hammad Nov 01 '21 at 11:47
  • 1
    It’s funny that the numbers are so close. If milliseconds they’d be in the range of 4 hours and 19 to 23 minutes, no great variation, so we’re probably missing something essential. If centiseconds (100ths of a second) the range would be 1 day and 19 to 20 hours. – Ole V.V. Nov 02 '21 at 17:56
  • you will see they follow a very close linear pattern for seconds too. that linear pattern is exactly what makes me wonder more about this variable – Hammad Nov 03 '21 at 01:44
  • Very interesting. If you could present that pattern in the question, maybe we can figure something out. (For example, what is the accompanying seconds value for each of your example durations, 15541075, 15724892, 15658466, 15722036, 15724891?) – Ole V.V. Nov 03 '21 at 04:36
  • have you ever found the solution? – Jonathan Jul 02 '22 at 17:02
  • Update: never found a solution – Hammad Aug 15 '23 at 21:16

0 Answers0