NASA Logo
Ocean Color Science Software

ocssw V2022
jday.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdint.h>
3 
14 int32_t jday(int16_t year, int16_t month, int16_t day) {
15  return 367 * year - 7 * (year + (month + 9) / 12) / 4 + 275 * month / 9 + day + 1721014;
16 }
int32_t day
int32_t jday(int16_t year, int16_t month, int16_t day)
Converts a calendar date to the corresponding Julian day starting at noon on the calendar date....
Definition: jday.c:14