checkTimes: Checks for correct time format

View source: R/bugs.R

checkTimesR Documentation

Checks for correct time format

Description

Checks time

Usage

checkTimes(x, format = "date")

Arguments

x

A string or vector char

format

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

Value

Logical.

Author(s)

George Vega Yon

Jorge Fabrega Lacoa

Examples


  test <- c("2012-01-17T03:46:41", "2012-01-17T03:46:410")
  checkTimes(test, format="dateTime")
  checkTimes("2012-02-01T00:00:00", "dateTime")

rgexf documentation built on July 3, 2024, 5:11 p.m.