ms_doy2md - Convert between day of year and month and day of month
Contents
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);
