ct_get_reset_time: Comtradr rate limit time check

Description Usage Arguments Value Examples

Description

Get the time in which the hourly limit will reset.

Usage

1

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

1
2
3
4
ct_get_reset_time()

# Get minutes remaining until limit reset, as numeric value.
as.double(ct_get_reset_time() - Sys.time())

ropensci/comtradr documentation built on June 12, 2019, 7:35 a.m.