Add Units
dtt_add_units(x, n = 1L, units = dtt_units(x)) dtt_subtract_units(x, n = 1L, units = dtt_units(x))
| x | A Date or POSIXct vector. |
|---|---|
| n | An integer of the number of units. |
| units | A string of the units. |
| ... | Unused. |
The modified Date or POSIXct vector.
dtt_subtract_units: Subtract Units
dtt_add_units(Sys.time())#> [1] "2020-03-05 13:40:00 PST"