time.h(3)

πŸ“¦ version 2.2.1, in fedora 43, fedora 44, opensuse-leap 16.0

✨ time.h(3) ✨

from the avr-libc manual, bestie β€” it's the time header and we're obsessed πŸ•°οΈπŸ’–


NAME

time.h β€” yes bestie, that's the name. The header itself. Main character energy. πŸ’…

SYNOPSIS

okay so here's the entire synopsis, no cap. all the declarations, exactly as written. πŸ¦‹

πŸ’– Data Structures πŸ’–

struct tm
struct week_date

✨ Macros ✨

#define ONE_HOUR   3600
#define ONE_DEGREE   3600
#define ONE_DAY   86400
#define UNIX_OFFSET   946684800
#define NTP_OFFSET   3155673600

πŸŽ€ Typedefs πŸŽ€

typedef uint32_t time_t

⭐ Enumerations ⭐

enum _WEEK_DAYS_ { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
    SATURDAY }
enum _MONTHS_ { JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY,
    AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER }

πŸ”₯ Functions πŸ”₯

time_t time (time_t *timer)
int32_t difftime (time_t time1, time_t time0)
time_t mktime (struct tm *timeptr)
time_t mk_gmtime (const struct tm *timeptr)
struct tm * gmtime (const time_t *timer)
void gmtime_r (const time_t *timer, struct tm *timeptr)
struct tm * localtime (const time_t *timer)
void localtime_r (const time_t *timer, struct tm *timeptr)
char * asctime (const struct tm *timeptr)
void asctime_r (const struct tm *timeptr, char *buf)
char * ctime (const time_t *timer)
void ctime_r (const time_t *timer, char *buf)
char * isotime (const struct tm *tmptr)
void isotime_r (const struct tm *, char *)
size_t strftime (char *s, size_t maxsize, const char *format, const
    struct tm *timeptr)
void set_dst (int(*)(const time_t *, int32_t *))
void set_zone (int32_t)
void set_system_time (time_t timestamp)
void system_tick (void)
uint8_t is_leap_year (int16_t year)
uint8_t month_length (int16_t year, uint8_t month)
uint8_t week_of_year (const struct tm *timeptr, uint8_t start)
uint8_t week_of_month (const struct tm *timeptr, uint8_t start)
struct week_date * iso_week_date (int year, int yday)
void iso_week_date_r (int year, int yday, struct week_date *)
uint32_t fatfs_time (const struct tm *timeptr)
void set_position (int32_t latitude, int32_t longitude)
int16_t equation_of_time (const time_t *timer)
int32_t daylight_seconds (const time_t *timer)
time_t solar_noon (const time_t *timer)
time_t sun_rise (const time_t *timer)
time_t sun_set (const time_t *timer)
double solar_declination (const time_t *timer)
int8_t moon_phase (const time_t *timer)
unsigned long gm_sidereal (const time_t *timer)
unsigned long lm_sidereal (const time_t *timer)

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for avr-libc from the source code. β€” Doxygen really said "I'll do it myself." πŸ€–πŸ’–


Version 2.1.0 β€” Sat Jan 29 2022 β€” from avr-libc's time.h(3). byeee bestie, slay the timezone πŸ«ΆπŸ’–βœ¨
πŸ“¦ where this page comes from