difftime: Utilities for 'difftime'

secsR Documentation

Utilities for difftime

Description

As base::difftime() vectors are used throughout ricu, a set of wrapper functions are exported for convenience of instantiation base::difftime() vectors with given time units.

Usage

secs(...)

mins(...)

hours(...)

days(...)

weeks(...)

Arguments

...

Numeric vector to coerce to base::difftime()

Value

Vector valued time differences as difftime object.

Examples

hours(1L)
mins(NA_real_)
secs(1:10)
hours(numeric(0L))


ricu documentation built on Sept. 8, 2023, 5:45 p.m.