as.Date.date_xx: Coerce dint Objects to Base R Date Types
Description
All dint objects can be coerced to base R Date or Datetime (POSIXct)
types. The resulting date will always default to the first possible
Date/Datetime in this period.
Usage
# S3 method for date_xx
as.POSIXlt(x, tz = "", ...)
# S3 method for date_xx
as.POSIXct(x, tz = "", ...)
Sys.date_yq()
Sys.date_ym()
Sys.date_yw()
# S3 method for date_y
as.Date(x, ...)
# S3 method for date_ym
as.Date(x, ...)
# S3 method for date_yq
as.Date(x, ...)
# S3 method for date_yw
as.Date(x, ...)
Value
An Object of the appropriate base R type (Date, POSIXct, or
POSIXlt)
Arguments
x
any R object
tz
time zone specification to be used for the conversion,
if one is required. System-specific (see time zones),
but "" is the current time zone, and "GMT" is UTC
(Universal Time, Coordinated). Invalid values are most commonly
treated as UTC, on some platforms with a warning.