parseDatetime: Parse Datetime Strings

Description Usage Arguments Value Examples

View source: R/parseDatetime.R

Description

8-, 10-, 12- and 14-digit formats are understood, e.g: 20150721 to 20150721000000. Integers will be converted to character before parsing. All incoming dates will be interpreted in the specified timezone ("UTC" by default).

If datetime is a POSIXct it will be returned unmodified.

Usage

1
parseDatetime(datetime, timezone = "UTC")

Arguments

datetime

vector of character or integer datetimes in YYYYMMDD[HHMMSS] format (or POSIXct)

timezone

Olson timezone at the location of interest

Value

POSIXct datetimes.

Examples

1
starttime <- parseDatetime(2015080718,timezone = "America/Los_Angeles")

PWFSLSmoke documentation built on Oct. 6, 2018, 1:03 a.m.