stravalib.util.limiter.get_seconds_until_next_day#

stravalib.util.limiter.get_seconds_until_next_day(now: Arrow | None = None) int[source]#

Returns the number of seconds until the next day (utc midnight). This is the long-term rate limit used by Strava.

Parameters:

now (arrow.arrow.Arrow) – A (utc) timestamp

Returns:

The number of seconds until next day, as int

Return type:

Int