forked from EarthScope/libmseed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathms_doy2md.3
41 lines (31 loc) · 1019 Bytes
/
ms_doy2md.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.TH MS_DOY2MD 3 2004/11/22 "Libmseed API"
.SH NAME
ms_doy2md - Convert between day of year and month and day of month
.SH SYNOPSIS
.nf
.B #include <libmseed.h>
.BI "int \fBms_doy2md\fP ( int " year ", int " jday ", int *" month ", int *" mday " );"
.BI "int \fBms_md2doy\fP ( int " year ", int " month ", int " mday ", int *" jday " );"
.fi
.SH DESCRIPTION
\fBms_doy2md\fP calculates the \fImonth\fP and day of month
(\fImday\fP) for a given \fIyear\fP and day of year (\fIjday\fP).
\fBms_md2doy\fP calculates the day of year (\fIjday\fP) for a given
\fIyear\fP, \fImonth\fP and day of month (\fImday\fP).
For both routines the expected and resulting ranges for each value are:
.sp
.nf
year : 1900 - 2100
jday : 1 - 366
month : 1 - 12
mday : 1 - 31
.fi
A day of year of 366 corresponds to the last day of a leap year.
.SH RETURN VALUES
\fBms_doy2md\fP returns 0 on success and -1 on error.
\fBms_md2doy\fP returns 0 on success and -1 on error.
.SH AUTHOR
.nf
Chad Trabant
IRIS Data Management Center
.fi