/
DaysInYear function
DaysInYear function
Returns the number of days in the year in the given date.
Namespace
datetime
Input
date(date
)
Output
days in year(int
)
Example
If basedate
contains the date 2012–08–18
, then the two following functions are equivalent, and return the integer
value 366
.
set-column result datetime:DaysInYear('2012-08-18')
set-column result datetime:DaysInYear(basedate)
If basedate
contains the date 2011–08–18
, then the two following functions are equivalent, and return the integer
value 365
.
set-column result datetime:DaysInYear('2011-08-18')
set-column result datetime:DaysInYear(basedate)
Related content
YeardayFromDate function
YeardayFromDate function
More like this
DaysInMonth function
DaysInMonth function
More like this
YearFromDate function
YearFromDate function
More like this
JulianDayFromDate function
JulianDayFromDate function
More like this
DateFromJulianDay function
DateFromJulianDay function
More like this
DaysSinceFromDate function
DaysSinceFromDate function
More like this
Created in 2020 by Google Inc.