as_difftime: convert units object into difftime object

View source: R/conversion.R

as_difftimeR Documentation

convert units object into difftime object

Description

convert units object into difftime object

Usage

as_difftime(x)

Arguments

x

object of class units

Examples


t1 = Sys.time()
t2 = t1 + 3600
d = t2 - t1
du <- as_units(d)
dt = as_difftime(du)
class(dt)
dt

units documentation built on May 29, 2024, 10:24 a.m.