Skip to content

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)

is.timepoint(x)

Arguments

x

an R object

Value

TRUE if x is a POSIXct, POSIXlt, or Date object, FALSE otherwise.

Examples

is.instant(as.Date("2009-08-03")) # TRUE
#> [1] TRUE
is.timepoint(5) # FALSE
#> [1] FALSE