datetimeoffset_utilities | R Documentation |
is_datetimeoffset()
tests whether a datetime object is of the "datetimeoffset" class.
NA_datetimeoffset_
provides a "missing" "datetimeoffset" object.
datetimeoffset_now()
returns the current time in the corresponding time zone(s).
is_datetimeoffset(x)
NA_datetimeoffset_
datetimeoffset_now(tz = Sys.timezone())
x |
An object to be tested |
tz |
Time zone(s) |
An object of class datetimeoffset
(inherits from vctrs_rcrd
, vctrs_vctr
) of length 1.
is_datetimeoffset()
returns a logical vector.
datetimeoffset_now()
returns a datetimeoffset()
vector.
is_datetimeoffset(as_datetimeoffset(Sys.time()))
is_datetimeoffset(Sys.time())
is.na(NA_datetimeoffset_)
is.na(as_datetimeoffset(""))
if (all(c("America/Los_Angeles", "America/New_York") %in% OlsonNames()))
datetimeoffset_now(c("America/Los_Angeles", "America/New_York"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.