is.instant

0th

Percentile

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.

Keywords
logic, chron
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.

See Also

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

Aliases
  • is.instant
  • instant
  • instants
  • is.timepoint
Examples
# NOT RUN {
is.instant(as.Date("2009-08-03")) # TRUE
is.timepoint(5) # FALSE
# }
Documentation reproduced from package lubridate, version 1.7.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.