Skip to contents

Get the time in which the hourly limit will reset.

Usage

ct_get_reset_time(set = NULL)

Arguments

set

logical, if TRUE and the current reset time is NULL, set the reset time to be one hour from the current Sys.time.

Value

date and time in which the hourly query limit will reset. Return is a "POSIXct" object (see DateTimeClasses).

Examples

ct_get_reset_time()
#> [1] "2023-05-11 08:10:37 UTC"

# Get minutes remaining until limit reset, as numeric value.
as.double(ct_get_reset_time() - Sys.time())
#> [1] 60