Name

hydroyear — compute the hydrological year a given date falls within

Synopsis

INT hydroyear ( date);  
DATE date ;
 
INT hydroyear ( timestamp);  
TIMESTAMP timestamp ;
 
INT hydroyear ( textualdate);  
TEXT textualdate ;
 

Input

date

A date, timestamp, or text that can be interpreted as a date.

Description

Return the hydrological year as an integer given a date or timestamp. The hydrological year begins November 1 and ends October 31. The number associated with a hydrological year is the calendar year in which the majority of the hydrological year falls, the calendar year of the October 31 at the end of the hydrological year.


Page generated: 2016-07-22T23:08:46-04:00.