diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-08-31 22:40:57 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-08-31 22:40:57 +0000 |
| commit | 6d6cca7830ed931198cd2df77bafbdd81038171a (patch) | |
| tree | 0ebe21bca4f6a65e78ad9971bdc513c8222e5bfa /src/util.h | |
| parent | 6e7f15f8157499796689a2bff1d110e83104ef43 (diff) | |
| download | libbu++-6d6cca7830ed931198cd2df77bafbdd81038171a.tar.gz libbu++-6d6cca7830ed931198cd2df77bafbdd81038171a.tar.bz2 libbu++-6d6cca7830ed931198cd2df77bafbdd81038171a.tar.xz libbu++-6d6cca7830ed931198cd2df77bafbdd81038171a.zip | |
Added a getDaysInMonth function, it'll live in util.{cpp,h} until I create an
actual Date class.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -167,6 +167,12 @@ namespace Bu | |||
| 167 | return *a > *b; | 167 | return *a > *b; |
| 168 | } | 168 | } |
| 169 | }; | 169 | }; |
| 170 | |||
| 171 | /** | ||
| 172 | * Get the number of days in the month in the gregorian calendar, taking | ||
| 173 | * leap years into account. | ||
| 174 | */ | ||
| 175 | int getDaysInMonth( int iMonth, int iYear ); | ||
| 170 | }; | 176 | }; |
| 171 | 177 | ||
| 172 | #endif | 178 | #endif |
