Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_calendar
month_days/1
Description
month_days/1 is an Erlang function exported by "age_calendar" module.
Returns how many days a selected year and month have.
References
None
Parameters
Name
Type
Year
integer()
Integer number of year.
Month
Integer number of month of the year.
Result
Value or Type
Returns number of days for the selected year and month.
Code Sample
> age_calendar:month_days(2020, 2). 29