| Contents |
#include <codecogs/units/date/dayofyear.h>
using namespace Units::Date;
| int | dayOfYear (int nDate)[inline] Computes the Gregorian day of the year from a serial Julian date. | |
| Integer | cc_dayOfYear (Integer nDate) This function is available as a Microsoft Excel add-in. |
| intdayOfYear( | int | nDate | )[inline] |
#include <stdio.h> #include <codecogs/units/date/dayofyear.h> #include <codecogs/units/date/date.h> using namespace Units::Date; int main() { for(int i=5;i<15;i++) { int adate=date(2004, 2, i); printf("\n %d February 2004 is %d day of year", i, dayOfYear(adate)); } return 0; }
| nDate | is a serial number of days from 24 November 4714 BC (1 January 4713BC in the Julian Calendar) - also known as the Julian Period. |