Convert ti or jul objects to Dates
Methods to convert ti
and jul
objects to class
"Date"
representing calendar dates.
## S3 method for class 'ti' as.Date(x, offset = 1, ...) ## S3 method for class 'jul' as.Date(x, origin = "1970-01-01", ...)
x |
A |
offset |
a number between 0 and 1 specifying where in the period
represented by the |
origin |
a Date object, or something which can be coerced by
|
... |
additional args passed on to
|
An object of class "Date"
.
as.Date
for the generic function,
as.Date.numeric
for the method eventually called, and Date for
details of the date class.
as.Date(today()) ## invokes as.Date.ti as.Date(jul(today() - 7)) ## a week ago, uses as.Date.jul
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.