title: DATE::DAYS_IN_MONTH section: 1g version: 1.0.1 date: 2025-09-11 author: laplante@plcb.ca
date::daysInMonth or daysInMonth(year, month)
date::daysInMonth or daysInMonth()
date::days_in_month or days_in_month(year, month)
date::days_in_month or days_in_month()
The days_in_month function returns the number of days in a month for the specified year and month.
year and month are omitted, the current year and month are used.year and month are validated. If either is invalid, an error message is returned. res={{ days_in_month(); }}.
→ res=\d+.
res={{ days_in_month(2000, 2); }}.
→ res=29.
res={{ days_in_month(2000, 14); }}.
→ days_in_month : invalid month : 14
res={{ days_in_month(2000, -14); }}.
→ days_in_month : invalid month : -14
res={{ days_in_month(-2000, -12); }}.
→ days_in_month : invalid year : -2000
laplante@plcb.ca