Skip to main content

builtin_difftime

Function builtin_difftime 

Source
fn builtin_difftime(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Compute the time difference between two date-time values.

@param time1 first POSIXct or Date value @param time2 second POSIXct or Date value @param units time unit for the result: “secs”, “mins”, “hours”, “days”, or “weeks” @return a difftime object (numeric with class and units attributes)