utils_is_time function

Title

Title

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.

Returns

logical

Examples

utils_is_time( x = c("2024-01-01", "2024-02-01") ) utils_is_time( x = utils_as_time( x = c("2024-01-01", "2024-02-01") ) )

See Also

Other internal_time_handling: utils_as_time(), utils_coerce_time_class(), utils_new_time(), utils_time_keywords(), utils_time_keywords_dictionary(), utils_time_keywords_translate(), utils_time_units()

  • Maintainer: Blas M. Benito
  • License: MIT + file LICENSE
  • Last published: 2025-02-01