Replies: 1 comment 2 replies
-
The 5562436 number is 1:32:42.436 in milliseconds, counting from the beginning of the race session.
If you can clarify your intention with some desired input/output pairs, then we can suggest alternative implementations. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, using
session = fastf1.get_session(2023, 4, "R")
and loading it, if I print it to the console, the total time it took the driver to complete the race is display. However, if I convert it to JSON it returns what I believe to be a unix timestamp, but after converting it to a human-readable format, it is converted into something totally different.To give an example, if I fetch the 2023 Azerbaijan Grand Prix data, it shows that Perez completed the race in 1:32:42.436, but after converting it into json with
session.results.to_json()
it shows he completed the race in5562436
, and if we convert that timestamp:It may be sound like a stupid question, but I don't know if I'm doing the right thing to convert it into the same format shown before converting it to json
Beta Was this translation helpful? Give feedback.
All reactions