WCA API for multiblind format

pjk

Administrator
Staff member
Joined
Mar 13, 2006
Messages
6,806
WCA ID
2007KELL02
SS Competition Results
I'm pulling from the WCA API to user profiles. The API gives this result : 850347501 for the Multi-Blind record for Mike H for example:
https://www.worldcubeassociation.org/api/v0/persons/2007HUGH01
Code:
"333mbf": {
      "single": {
        "best": 850347501,
        "world_rank": 147,
        "continent_rank": 28,
        "country_rank": 22
      }

How is 85034750 calculated/formatted so I can format it the same as in Mike's profile as: 15/16 57:55? Thanks.
 
85 03475 01
85 = 99 - points
03475 = time in seconds
01 = cubes unsuccessfully solved

cubes successfully solved = 99 - first 2 digits + unsuccessful cubes = 99 - 85 + 01 = 15
cubes attempted = cubes solved + unsuccessful cubes = 99 - 85 + 01 + 01 = 16
03475 seconds = 57 minutes 55 seconds
 
Back
Top