dayOfYr Function

Calculates the number of days between January 1 and the specified date.


int dayOfYr(date _date)

Parameter

Description

_date

A date that specifies the year, month, and day.

The number of days between January 1 and the specified date, inclusive.

January 1 is 1 and December 31 is either 365 or 366.

static void dayOfYrExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = dayOfYr(d);
    print "Today's day of the year is " + int2Str(i);
    pause;
} 

Community Additions

ADD
Show: