decodeTime {oce}R Documentation

Oce Version of as.POSIXct

Description

Each format in timeFormats is used in turn as the format argument to as.POSIXct(), and the first that produces a non-NA result is used. If timeFormats is missing, the following formats are tried, in the stated order:

Usage

decodeTime(time, timeFormats, tz = "UTC")

Arguments

time

Character string with an indication of the time.

timeFormats

Optional vector of time formats to use, as for as.POSIXct().

tz

Time zone.

Details

Value

A time as returned by as.POSIXct().

Author(s)

Dan Kelley

Examples

decodeTime("July 1 2013 01:02:03")
decodeTime("Jul 1 2013 01:02:03")
decodeTime("1 July 2013 01:02:03")
decodeTime("1 Jul 2013 01:02:03")
decodeTime("2013-07-01 01:02:03")
decodeTime("2013/07/01 01:02:03")
decodeTime("2013/07/01")


[Package oce version 1.8-2 Index]