tick.to.time {DEPONS2R} | R Documentation |
Convert tick number to time object
Description
Converts the number of ticks since the start of the simulation to a specific date while taking into account that DEPONS assumes that there are 360 days in a simulation year.
Usage
tick.to.time(tick, timestep = 30, origin = "2010-01-01", tz = "UTC", ...)
Arguments
tick |
Numeric, or numeric vector; tick number |
timestep |
Numeric; length of each simulation time step, in minutes. Defaults to 30 minutes. |
origin |
Character. The first day of the period that the simulation represents, format: 'yyyy-mm-dd'. |
tz |
Character. Valid time zone code (default UTC). |
... |
Optional parameters |
Value
object of class as.POSIXlt
Note
The function assumes that there are 30 days in each month, except in January, February and March with 31, 28 and 31 days, respectively.
See Also
time.to.tick
is the inverse of this function, converting dates to ticks
[Package DEPONS2R version 1.2.6 Index]