year(.data, tz = "UTC", discrete = TRUE)
yearquarter(.data, tz = "UTC", discrete = TRUE)
yearmonth(.data, tz = "UTC", discrete = TRUE)
Another object to be coerced into the specified time.
Timezone, defaults to "UTC".
If TRUE
, the number of chronons since Unix epoch that
.data
falls into is returned as an integer. If FALSE
, a fractional number
of chronons is returned (analagous to time using a continuous time model).
Arguments for methods.
year(Sys.Date())
#> Error in loadNamespace(x): there is no package called ‘vecvec’
yearquarter(0:7)
#> Warning: tz(): Don't know how to compute timezone for object of class integer; returning "UTC".
#> Error in loadNamespace(x): there is no package called ‘vecvec’
yearmonth(Sys.Date())
#> Error in loadNamespace(x): there is no package called ‘vecvec’