This documentation is archived and is not being maintained.
dayOfYr Function
Calculates the number of days between a specified date and January 1 in the year of the specified date.
|
Parameter
|
Description
|
|
_date
|
The date to test. The format of the argument is dd\mm\yyyy.
|
The number of days between a specified date and January 1 in the year of the specified date, inclusive.
static void dayOfYrExample(Args _arg)
{
date d = today();
int i;
;
i = dayOfYr(d);
print "Today's day of the year is " + int2Str(i);
pause;
}