lubridate (version 0.1)

is.instant: Is x a date-time object?

Description

Is x a date-time object?

Usage

is.instant(x)

Arguments

x
an R object

Value

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

Details

date-time object denote instants in time.

See Also

is.timespan, is.POSIXt, is.Date

Examples

Run this code
is.instant(as.Date("2009-08-03")) # TRUE
is.timepoint(5) # FALSE}

Run the code above in your browser using DataLab