1MS_DOY2MD(3)               Library Functions Manual               MS_DOY2MD(3)
2
3
4

NAME

6       ms_doy2md - Convert between day of year and month and day of month
7
8

SYNOPSIS

10       #include <libmseed.h>
11
12       int  ms_doy2md ( int year, int jday, int *month, int *mday );
13
14       int  ms_md2doy ( int year, int month, int mday, int *jday );
15
16

DESCRIPTION

18       ms_doy2md calculates the month and day of month (mday) for a given year
19       and day of year (jday).
20
21       ms_md2doy calculates the day of year (jday) for a given year, month and
22       day of month (mday).
23
24       For both routines the expected and resulting ranges for each value are:
25
26       year  : 1900 - 2100
27       jday  : 1 - 366
28       month : 1 - 12
29       mday  : 1 - 31
30
31       A day of year of 366 corresponds to the last day of a leap year.
32
33

RETURN VALUES

35       ms_doy2md returns 0 on success and -1 on error.
36
37       ms_md2doy returns 0 on success and -1 on error.
38
39

AUTHOR

41       Chad Trabant
42       IRIS Data Management Center
43
44
45
46Libmseed API                      2004/11/22                      MS_DOY2MD(3)
Impressum