NASA Logo
Ocean Color Science Software

ocssw V2022
jdate.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <timeutils.h>
Include dependency graph for jdate.c:

Go to the source code of this file.

Functions

int jdate (int32_t julianDay, int32_t *year, int32_t *dayOfYear)
 

Function Documentation

◆ jdate()

int jdate ( int32_t  julianDay,
int32_t *  year,
int32_t *  dayOfYear 
)

Takes in a julian day and mutates year and doy to contain the gregorian year and day of that gregorian year of that julian day.

Parameters
julianDayThe Julian day to be converted
yearOut-parameter indicating the gregorian year that julianDay is in
dayOfYearOut-parameter indicating the number of days into the gregorian year that julianDay is.

Definition at line 13 of file jdate.c.