Skip to contents

Title

Usage

utils_is_time(x = NULL)

Arguments

x

(required, vector) Vector to test. If the class of the vector elements is 'numeric', 'POSIXct', or 'Date', the function returns TRUE. Default: NULL.

Value

logical

Examples


utils_is_time(
  x = c("2024-01-01", "2024-02-01")
)
#> [1] FALSE

utils_is_time(
  x = utils_as_time(
    x = c("2024-01-01", "2024-02-01")
    )
)
#> [1] TRUE