Skip to contents

Return TRUE if the vector is a datetime.

Usage

is_datetime(x)

Arguments

x

A vector

Value

A boolean vector with the return from the condition check.

Examples


is_datetime(Sys.time())
#> [1] TRUE

is_datetime(Sys.Date())
#> [1] FALSE