How to get reset time for leaderboard

Hi,
Is there a way to get how much time is left for a reset schedule on a specific leaderboard? We want to have weekly leaderboards and to reward the best players after the reset of the leaderboard, and also to show the user how much time is the current leaderboard active.

Thank you

Hey,

Thanks for reaching out.

If you’re using the Leaderboards SDK, you could look into using the GetVersonsAsync method on your ILeaderboardService. This returns a LeaderboardsVersions object that has a nextReset property on it.

Or, if you’re using the Client HTTP APIs, you can get this via a call to GetArchivedVersions where nextReset is a property.

Hope this helps!

Jamie

Hey Jamie,

thank you for the response, it solved my problem.

1 Like