check_time_interval: check_time_interval

View source: R/common.R

check_time_intervalR Documentation

check_time_interval

Description

Checks if it is a time interval or creates one from an integer and a unit

Usage

check_time_interval(interval, units = "secs")

Arguments

interval

character value, (not numeric to allow sub-microsecond precision) - can reach nanosecond precision by using for example 3.000000008

units

charact, for now only "secs" supported, in future also , "mins", "hours", "days", "weeks"

Details

check_time_interval

Value

a "nanotime::nanoduration" object

Examples

# check_time_interval

fpirotti/rRINEX documentation built on Sept. 1, 2022, 9:34 p.m.