stravalib.util.limiter.get_seconds_until_next_quarter#
- stravalib.util.limiter.get_seconds_until_next_quarter(now: Arrow | None = None) int [source]#
Returns the number of seconds until the next quarter of an hour. This is the short-term rate limit used by Strava.
- Parameters:
now (arrow.arrow.Arrow) – A (utc) timestamp
- Returns:
The number of seconds until the next quarter, as int
- Return type:
int