![]() |
SuperNOVAS C API v1.8
High-precision C/C++ astrometry library
|
Various functions to convert between calendar dates and Julian days. More...
Functions | |
| int | cal_date (double tjd, short *restrict year, short *restrict month, short *restrict day, double *restrict hour) |
| This function will compute a broken down date on the astronomical calendar given the Julian day input. | |
| double | julian_date (short year, short month, short day, double hour) |
| Returns the Julian day for a given astronomical calendar date. | |
| int | novas_day_of_week (double tjd) |
| Returns the one-based ISO 8601 day-of-week index of a given Julian Date. | |
| int | novas_day_of_year (double tjd, enum novas_calendar_type calendar, int *restrict year) |
| Returns the one-based day index in the calendar year for a given Julian Date. | |
| int | novas_is_leap_year (int year, enum novas_calendar_type calendar) |
| Checks if a given year is a leap year in a specific calendar. | |
| double | novas_jd_from_date (enum novas_calendar_type calendar, int year, int month, int day, double hour) |
| Returns the Julian day for a given calendar date. | |
| int | novas_jd_to_date (double tjd, enum novas_calendar_type calendar, int *restrict year, int *restrict month, int *restrict day, double *restrict hour) |
| This function will compute a broken down date on the specified calendar for given the Julian day input. | |
Various functions to convert between calendar dates and Julian days.
| int novas_is_leap_year | ( | int | year, |
| enum novas_calendar_type | calendar ) |
Checks if a given year is a leap year in a specific calendar.
| year | [yr] The calendar year. for X BCE, it is 1 - X. For example 45 BCE is -44. |
| calendar | The type of calendar |
References NOVAS_ASTRONOMICAL_CALENDAR, NOVAS_GREGORIAN_CALENDAR, novas_is_leap_year(), and NOVAS_ROMAN_CALENDAR.
Referenced by novas_day_of_year(), and novas_is_leap_year().