I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 5.62
sub units 1.40
+
0
UnitsDate

days In Year

Returns the number of days in the year of a Gregorian calendars. Open Office: DAYSINYEAR
Controller: CodeCogs

Dependents

Info

Interface

C++
Excel

DaysInYear

 
intdaysInYearintyear )[inline]
Returns the number of days in the year of a Gregorian calendar. Through the use of isLeapYear, this function is simply:
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

yearcan 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.