From 6d6cca7830ed931198cd2df77bafbdd81038171a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 31 Aug 2009 22:40:57 +0000 Subject: Added a getDaysInMonth function, it'll live in util.{cpp,h} until I create an actual Date class. --- src/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 0c2f0eb..c284880 100644 --- a/src/util.h +++ b/src/util.h @@ -167,6 +167,12 @@ namespace Bu return *a > *b; } }; + + /** + * Get the number of days in the month in the gregorian calendar, taking + * leap years into account. + */ + int getDaysInMonth( int iMonth, int iYear ); }; #endif -- cgit v1.2.3