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

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3

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

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


Search within the lubridate package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.