length-of-year
date-time →
length-of-year() → integer
Returns the count of days within the year of the dateTime value passed as the argument. If the argument is not a dateTime but an integer, returns count of days of the corresponding year. It returns 365 or 366 (for leap years).
Parameters
This function has no parameters.
Examples
#"2024-01-15 12:30:00" | length-of-year → 366
Kind: Function
Scope: temporal/calendar
Aliases: dateTime-to-length-of-year