Libical API Documentation 4.0
Loading...
Searching...
No Matches
astime.h File Reference

contains definitions of structures used for time calculations. More...

Go to the source code of this file.

Data Structures

struct  ut_instant_int
 

Typedefs

typedef struct ut_instant_int UTinstantInt
 
typedef struct ut_instant_intUTinstantIntPtr
 

Functions

void caldat_int (UTinstantIntPtr)
 
void juldat_int (UTinstantIntPtr)
 

Detailed Description

contains definitions of structures used for time calculations.

Function Documentation

◆ caldat_int()

void caldat_int ( UTinstantIntPtr )

Computes the day of the week, the day of the year from the Gregorian (or julian) calendar date from the julian decimal date. for astronomical purposes, The Gregorian calendar reform occurred on 15 Oct. 1582. This is 05 Oct 1582 by the julian calendar.

Input: a ut_instant structure pointer, where the j_date element has been set. ( = 0 for 01 Jan 4713 B.C.)

output: will set all the other elements of the structure. As a convenience, the function will also return the year.

Reference: Astronomical formulae for calculators, meeus, p 23 from fortran program by F. Espenak - April 1982 Page 277, 50 Year canon of solar eclipses: 1986-2035

◆ juldat_int()

void juldat_int ( UTinstantIntPtr )

Computes the julian decimal date (j_date) from the Gregorian (or Julian) calendar date. for astronomical purposes, The Gregorian calendar reform occurred on 15 Oct. 1582. This is 05 Oct 1582 by the julian calendar. Input: a ut_instant structure pointer where Day, Month, Year have been set for the date in question.

Output: the j_date and weekday elements of the structure will be set. Also, the return value of the function will be the j_date too.

Reference: Astronomical formulae for calculators, meeus, p 23 from fortran program by F. Espenak - April 1982 Page 276, 50 Year canon of solar eclipses: 1986-2035