CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

UnitsDate

days In Year

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 4.68
sub units 1.17
add a commercial licence to your cart
0
viewed 1357 times and licensed 8 times

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

Further Info Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Interface

#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
ExcelInteger cc_daysInYear (Integer year)
This function is available as a Microsoft Excel add-in.

Function Documentation

Days In Year Calculator
  
Add calculator to website or email
 
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:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2010-03-14 12:06:57

Valid CSS!   Valid XHTML 1.0 Transitional