is.instant
From lubridate v1.2.0
by Garrett Grolemund
Is x a date-time object?
An instant is a specific moment in time. Most common date-time objects (e.g, POSIXct, POSIXlt, and Date objects) are instants.
Usage
is.instant(x)
Arguments
- x
- an R object
Value
- TRUE if x is a POSIXct, POSIXlt, or Date object, FALSE otherwise.
See Also
Examples
is.instant(as.Date("2009-08-03")) # TRUE
is.timepoint(5) # FALSE
Community examples
Looks like there are no examples yet.