getSWATdates: Converts a date time series to SWAT IO format dates

Description Usage Arguments Value Examples

Description

Converts a date time series to SWAT IO format dates

Usage

1
getSWATdates(dates, dateformat = "yyyy-mm-dd")

Arguments

dates

- Input vector of dates in as Date or character class.

dateformat

- Format of input dates. Can be 'yyyy-mm-dd', 'mm-dd-yyyy', 'mm/dd/yyyy', 'yyyy/mm/dd','dd/mm/yyy', or 'dd-mm-yyy'. Default is 'yyyy-mm-dd'.

Value

returns a time series of swat IO format dates from the input

Examples

1
2
dates = c('2000-12-28', '2000-12-29')
getSWATdates(dates)

Example output

[1] "2000362" "2000363"

getMet documentation built on May 1, 2019, 8:43 p.m.

Related to getSWATdates in getMet...