X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77dd7daad2df0faac2b4e846ac9bb6aff588278c..1bcef6701be81d1f4473eb5a297bdf20fa292d98:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index caeae26bda..f6bb9cdc29 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1579,6 +1579,8 @@ public: int GetYears() const { return m_years; } // get number of months int GetMonths() const { return m_months; } + // returns 12*GetYears() + GetMonths() + int GetTotalMonths() const { return 12*m_years + m_months; } // get number of weeks int GetWeeks() const { return m_weeks; } // get number of days