Checks time

checkTimes(x, format = "date")

Arguments

x

A string or vector char

format

String, can be “date”, “dateTime”, “float”

Value

Logical.

Author

George Vega Yon

Jorge Fabrega Lacoa

Examples

test <- c("2012-01-17T03:46:41", "2012-01-17T03:46:410") checkTimes(test, format="dateTime")
#> [1] TRUE FALSE
checkTimes("2012-02-01T00:00:00", "dateTime")
#> [1] TRUE