Learn R Programming

rgexf (version 0.16.3)

checkTimes: Checks for correct time format

Description

Checks time

Usage

checkTimes(x, format = "date")

Value

Logical.

Arguments

x

A string or vector char

format

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

Author

George Vega Yon

Jorge Fabrega Lacoa

Examples

Run this code

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

Run the code above in your browser using DataLab