Difference between revisions of "Mu datetime dayofyear"

From Mailutils
Jump to navigationJump to search
(Created page with "{{DISPLAYTITLE:mu_datetime_dayofyear}} <syntaxhighlight lang="C"> #include <mailutils/datetime.h> int mu_datetime_dayofyear (int year, int month, int day); </syntaxhighlight> ...")
 
 
Line 7: Line 7:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The <tt>mu_datetime_dayofyear</tt> function computes the [http://en.wikipedia.org/wiki/Ordinal_date ordinal date] (a number in the range 1 - 366), corresponding to the specified date.  Both <tt>month</tt> and <tt>day</tt> start with 1.
+
The <tt>mu_datetime_dayofyear</tt> function returns the [http://en.wikipedia.org/wiki/Ordinal_date ordinal date] (a number in the range 1 - 366), corresponding to the specified date.  Both <tt>month</tt> and <tt>day</tt> start with 1.
  
 
== See also ==
 
== See also ==

Latest revision as of 11:03, 17 December 2011


#include <mailutils/datetime.h>

int mu_datetime_dayofyear (int year, int month, int day);

The mu_datetime_dayofyear function returns the ordinal date (a number in the range 1 - 366), corresponding to the specified date. Both month and day start with 1.

See also