OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
yd2md.c
Go to the documentation of this file.
1 #include <timeutils.h>
2 
3 /* -------------------------------------------------------------- */
4 /* yd2md() - converts year and day to month and day-of-month */
5 /* -------------------------------------------------------------- */
6 void yd2md(int16_t year, int16_t doy, int16_t *month, int16_t *dom) {
7  double sec = 0.0;
8  int16_t yr;
9 
10  unix2ymds(yds2unix(year, doy, sec), &yr, month, dom, &sec);
11 
12  return;
13 }
14 
double yds2unix(int16_t year, int16_t day, double secs)
Definition: yds2unix.c:7
void unix2ymds(double usec, int16_t *year, int16_t *mon, int16_t *day, double *secs)
Definition: unix2ymds.c:8
void yd2md(int16_t year, int16_t doy, int16_t *month, int16_t *dom)
Definition: yd2md.c:6