time_vec: Format SWMP datetimestamp

Description Usage Arguments Details Value

View source: R/swmpr_misc.R

Description

Format the datetimestamp column of SWMP data

Usage

1
time_vec(chr_in = NULL, station_code, tz_only = FALSE)

Arguments

chr_in

chr string of datetimestamp vector

station_code

is chr string for station (three or more characters)

tz_only

logical that returns only the timezone, default FALSE

Details

This function formats the datetimestamp column of SWMP data to the POSIXct format and the correct timezone for a station. Note that SWMP data do not include daylight savings and the appropriate location based on GMT offsets is used for formatting. This function is used internally within data retrieval functions and does not need to be called explicitly.

Value

Returns a POSIX vector if tz_only is true, otherwise the timezone for a station is returned as a chr string


SWMPr documentation built on Feb. 9, 2018, 6:08 a.m.

Related to time_vec in SWMPr...