An instant is a specific moment in time. Most common date-time objects (e.g, POSIXct, POSIXlt, and Date objects) are instants.

is.instant(x)

is.timepoint(x)

Arguments

x

an R object

Value

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

See also

is.timespan(), is.POSIXt(), is.Date()

Examples

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