Description Usage Arguments Value Examples
Simple helper functions for conversion between day of year number to date and back, and extraction of parts of a date.
1 2 3 4 5 6 7 | dateFromDoy(doy, year)
doyFromDate(date)
dayFromDate(date)
monthFromDate(date)
yearFromDate(date)
isLeapYear(year)
daysInYear(year)
|
doy |
Day of the year (1..365) or (1:366) for leap years |
year |
year, e.g. 1982 |
date |
date (Date or character class) as 'yyyy-mm-dd', e.g. '1982-11-23' |
Day of the year or Date
1 2 3 4 5 6 7 8 9 | doy <- 88
year <- 1970
date <- dateFromDoy(doy, year)
date
dateFromDoy(-15, 2000)
doyFromDate(date)
isLeapYear(2000)
daysInYear(2000)
daysInYear(1999)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.