Provided by: libmseed-doc_2.19.8-1_all bug

NAME

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

SYNOPSIS

       #include <libmseed.h>

       int  ms_doy2md ( int year, int jday, int *month, int *mday );

       int  ms_md2doy ( int year, int month, int mday, int *jday );

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.

RETURN VALUES

       ms_doy2md returns 0 on success and -1 on error.

       ms_md2doy returns 0 on success and -1 on error.

AUTHOR

       Chad Trabant
       IRIS Data Management Center