Compute "water" day and year, based on the end of the typical or legal dry season. This is September 30 in California.

waterDayYear(d, end = "09-30")

Arguments

d

anything the can be safely converted to PPOSIXlt

end

"MM-DD" notation for end of water year

Value

A data.frame object with the following

wy

the "water year"

wd

the "water day"

Details

This function doesn't know about leap-years. Probably worth checking.

Author

D.E. Beaudette

Examples


# try it
waterDayYear('2019-01-01')
#>     wy wd
#> 1 2019 93