libnova v 0.15.0
ln_date Struct Reference

Human readable Date and time used by libnova. More...

#include <ln_types.h>

Data Fields

int years
int months
int days
int hours
int minutes
double seconds

Detailed Description

Human readable Date and time used by libnova.

Date

This is the Human readable (easy printf) date format used by libnova. It's always in UTC. For local time, please use ln_zonedate.

Examples
comet.c, and transforms.c.

Field Documentation

◆ days

int ln_date::days

Days. Valid values 1 - 28,29,30,31 Depends on month.

Examples
transforms.c.

Referenced by ln_date_to_zonedate(), ln_get_date(), ln_get_date_from_mpc(), ln_get_date_from_sys(), ln_get_julian_day(), and ln_zonedate_to_date().

◆ hours

int ln_date::hours

◆ minutes

int ln_date::minutes

◆ months

int ln_date::months

Months. Valid values : 1 (January) - 12 (December)

Examples
transforms.c.

Referenced by ln_date_to_zonedate(), ln_get_date(), ln_get_date_from_mpc(), ln_get_date_from_sys(), ln_get_julian_day(), and ln_zonedate_to_date().

◆ seconds

double ln_date::seconds

◆ years

int ln_date::years