#include "MisrUtil.h"
#include "MisrError.h"
#include <math.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
◆ GREGORIAN_EPOCH
#define GREGORIAN_EPOCH 1721425.5 |
◆ gregorian_to_jd()
static double gregorian_to_jd |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
| |
|
static |
◆ leap_gregorian()
static int leap_gregorian |
( |
int |
year | ) |
|
|
static |
◆ MtkCalToJulian()
MTKt_status MtkCalToJulian |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
min, |
|
|
int |
sec, |
|
|
double * |
jd |
|
) |
| |
Convert calendar date to Julian date.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we convert from the calendar date 2002-05-02 02:00:00 to Julian date.
- Parameters
-
[in] | year | Year |
[in] | month | Month |
[in] | day | Day |
[in] | hour | Hour |
[in] | min | Minutes |
[in] | sec | Seconds |
[out] | jd | Julian date |
Definition at line 61 of file MtkCalToJulian.c.