Date Time
include/time/date_time.h View source View on GitHub TODO
timezones and functions related to this once anything needs this
Structs
Section titled “Structs”date_time
Section titled “date_time” struct date_time (3 fields) source
date_time_zone
Section titled “date_time_zone”date_time_expanded
Section titled “date_time_expanded” struct date_time_expanded (7 fields) source
Type Aliases
Section titled “Type Aliases”year_t
Section titled “year_t”typedef uint16_t year_t source We’ll define these because this header + the implementations for various functions using struct date_time will need the annotations in types
typedef uint16_t day_t source Functions
Section titled “Functions”is_leap_year
Section titled “is_leap_year”days_in_month
Section titled “days_in_month”date_time_expand
Section titled “date_time_expand”struct date_time_expanded date_time_expand(const struct date_time *dt) source date_time_compact
Section titled “date_time_compact”void date_time_compact(
const struct date_time_expanded *expanded,
struct date_time *out
) source