logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ms_doy2md - Convert between day of year and month and day of month

Author

       Chad Trabant
       IRIS Data Management Center

Libmseed API                                       2004/11/22                                       MS_DOY2MD(3)

Description

ms_doy2md calculates the month and day of month (mday) for a given year and day of year (jday).

       ms_md2doy calculates the day of year (jday) for a given year, month and day of month (mday).

       For both routines the expected and resulting ranges for each value are:

       year  : 1900 - 2100
       jday  : 1 - 366
       month : 1 - 12
       mday  : 1 - 31

       A day of year of 366 corresponds to the last day of a leap year.

Name

       ms_doy2md - Convert between day of year and month and day of month

Return Values

ms_doy2md returns 0 on success and -1 on error.

       ms_md2doy returns 0 on success and -1 on error.

Synopsis

#include<libmseed.h>intms_doy2md(intyear,intjday,int*month,int*mday);intms_md2doy(intyear,intmonth,intmday,int*jday);

See Also