View source: R/str2str_functions.R
is.POSIXlt | R Documentation |
is.POSIXlt
returns whether an object is a POSIXlt object (aka has class = "POSIXlt").
is.POSIXlt(x)
x |
an object. |
TRUE is x
has class "POSIXlt" and FALSE if x
does not have class "POSIXlt".
time <- as.POSIXlt("2021-05-24 21:49:11", tz = "America/New_York",
format = "%Y-%m-%d %H:%M:%OS") # as.POSIXlt.character
is.POSIXlt(time)
class(time) <- append(class(time), "extra_class")
is.POSIXlt(time) # classes other than POSIXlt are allowed
is.POSIXlt(list(time)) # returns FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.