man/as_difftime.Rd
raw| 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/conversion.R |
| 3 | \name{as_difftime} |
| 4 | \alias{as_difftime} |
| 5 | \title{convert units object into difftime object} |
| 6 | \usage{ |
| 7 | as_difftime(x) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{x}{object of class \code{units}} |
| 11 | } |
| 12 | \description{ |
| 13 | convert units object into difftime object |
| 14 | } |
| 15 | \examples{ |
| 16 | |
| 17 | t1 = Sys.time() |
| 18 | t2 = t1 + 3600 |
| 19 | d = t2 - t1 |
| 20 | du <- as_units(d) |
| 21 | dt = as_difftime(du) |
| 22 | class(dt) |
| 23 | dt |
| 24 | } |