| Contents |
#include <codecogs/units/date/daysinyear.h>
using namespace Units::Date;
| int | daysInYear (int year)[inline] Returns the number of days in the year of a Gregorian calendars.
Open Office: DAYSINYEAR | |
| Integer | cc_daysInYear (Integer year) This function is available as a Microsoft Excel add-in. |
| intdaysInYear( | int | year | )[inline] |
365 + isLeapYear(Year);
#include <stdio.h> #include <codecogs/units/date/date.h> #include <codecogs/units/date/daysinyear.h> using namespace Units::Date; int main() { for(int i=2000;i<=2004;i++) printf("\n Year %d has %d days",i , daysInYear(i)); return 0; }
| year | can be any integer greater than 4800 BC (see isLeapYear). |