PINE LIBRARY

FunctionDaysInMonth

1 311
Library "FunctionDaysInMonth"
Method to find the number of days in a given month of year.

days_in_month(year, month) Method to find the number of days in a given month of year.
  Parameters:
    year: int, year of month, so we know if year is a leap year or not.
    month: int, month number.
  Returns: int

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.