days In Year
Returns the number of days in the year of a Gregorian calendars.
Open Office: DAYSINYEAR
Controller: CodeCogs
Contents
Dependents
Interface
C++
Excel
DaysInYear
intdaysInYear( | int | year | )[inline] |
365 + isLeapYear(Year);
Example 1
#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; }
Parameters
year can be any integer greater than 4800 BC (see isLeapYear).
Authors
- Will Bateman (Sep 2004)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.