Skip to contents

Reformats a POSIXct date formats to a string (vec) with the format dd.mm.yyyy hh:mm:ss. This is the format that RSMinerve accepts for time series.

Usage

posixct2rsminerveChar(dateVec, tz = "")

Arguments

dateVec

Date vector

tz

Optional character indicating time zone for as.POSIXct. Default is system internal time zone (""). "GTM" or known local time zone of data recommended.

Value

Dateframe with dates in dd.mm.yyyy hh:mm:ss representation

See also

Other Helper functions: %>%(), aggregate_to_monthly(), cutRaster2Basin(), decadeMaker(), generateSeqDates(), hyear(), monDateSeq()

Examples

date_vec <- c("2018-01-01 01:00:00", "2018-01-01 02:00:00", "2018-01-01 03:00:00")
rsminerve_date_vec <- posixct2rsminerveChar(date_vec, "GMT")