powered by
Time units since Unix Epoch
units_since(x)
An object of POSIXct, Date, yearweek, yearmonth, yearquarter.
POSIXct
Date
yearweek
yearmonth
yearquarter
origin:
POSIXct: 1970-01-01 00:00:00
Date: 1970-01-01
yearweek: 1970 W01 (i.e. 1969-12-29)
yearmonth: 1970 Jan
yearquarter: 1970 Qtr1
# NOT RUN { units_since(x = yearmonth(2012 + (0:11) / 12)) # }
Run the code above in your browser using DataLab