Learn R Programming

timeDate (version 4041.110)

whichFormat: Format recognation

Description

Tries to recognize the date/time format.

Usage

whichFormat(charvec, silent = FALSE)

Value

a format string

Arguments

charvec

a character string or vector of dates and times.

silent

a logical flag. Should a warning be printed if the format cannot be recognized?

Examples

Run this code
## midnightStandard
whichFormat("2007-12-31 24:00")

Run the code above in your browser using DataLab