flexibleTimeParse: Will attempt to parse a DV, UTC time, or offset time.

Description Usage Arguments Value

View source: R/utils-time.R

Description

A convienence function that will attempt to parse a (day point-type) date, UTC time, or offset time extremes JSON.

Usage

1
2
flexibleTimeParse(x, timezone, shiftTimeToNoon = TRUE,
  attachUTCOffset = FALSE)

Arguments

x

A character vector of length one or greater of the dates/times.

timezone

A character vector of length one, indicating a time zone code.

shiftTimeToNoon

Reference time to 12:00 p.m. if TRUE; interpret literally when FALSE.

attachUTCOffset

parse the UTC offset from supplied timezone to time vector and attach to returned time if TRUE

Value

time vector


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.