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)
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
  • instant
  • instants
  • is.instant
  • is.timepoint
  • timepoint
Examples
is.instant(as.Date("2009-08-03")) # TRUE
is.timepoint(5) # FALSE
Documentation reproduced from package lubridate, version 1.5.6, License: GPL-2

Community examples

Looks like there are no examples yet.