122 time_t
time(time_t *timer);
176 typedef unsigned long clock_t;
177 extern char *_CLOCKS_PER_SEC_;
178 #define CLOCKS_PER_SEC ((clock_t) _CLOCKS_PER_SEC_)
179 extern clock_t clock(
void);
207 struct tm *
gmtime(
const time_t * timer);
212 void gmtime_r(
const time_t * timer,
struct tm * timeptr);
230 char *
asctime(
const struct tm * timeptr);
235 void asctime_r(
const struct tm * timeptr,
char *buf);
240 char *
ctime(
const time_t * timer);
245 void ctime_r(
const time_t * timer,
char *buf);
265 size_t strftime(
char *s,
size_t maxsize,
const char *format,
const struct tm * timeptr);
418 #define ONE_HOUR 3600
421 #define ONE_DEGREE 3600
424 #define ONE_DAY 86400
436 #define UNIX_OFFSET 946684800
448 #define NTP_OFFSET 3155673600
489 time_t
sun_rise(
const time_t * timer);
494 time_t
sun_set(
const time_t * timer);
void isotime_r(const struct tm *, char *)
Definition: isotime_r.c:41
char * ctime(const time_t *timer)
Definition: ctime.c:40
_MONTHS_
Definition: time.h:353
int32_t difftime(time_t time1, time_t time0)
Definition: difftime.c:38
int8_t moon_phase(const time_t *timer)
Definition: moon_phase.c:40
struct week_date * iso_week_date(int year, int yday)
Definition: iso_week_date.c:44
unsigned long gm_sidereal(const time_t *timer)
Definition: gm_sidereal.c:49
void asctime_r(const struct tm *timeptr, char *buf)
Definition: asctime_r.c:49
uint8_t week_of_month(const struct tm *timeptr, uint8_t start)
Definition: week_of_month.c:42
unsigned long lm_sidereal(const time_t *timer)
Definition: lm_sidereal.c:39
void ctime_r(const time_t *timer, char *buf)
Definition: ctime_r.c:37
void iso_week_date_r(int year, int yday, struct week_date *)
Definition: iso_week_date_r.c:49
time_t mk_gmtime(const struct tm *timeptr)
Definition: mk_gmtime.c:40
signed int int16_t
Definition: stdint.h:85
signed char int8_t
Definition: stdint.h:75
time_t solar_noon(const time_t *timer)
Definition: solar_noon.c:40
time_t sun_set(const time_t *timer)
Definition: sun_set.c:38
double solar_declination(const time_t *timer)
Definition: solar_declination.c:50
signed long int int32_t
Definition: stdint.h:95
uint8_t week_of_year(const struct tm *timeptr, uint8_t start)
Definition: week_of_year.c:42
char * isotime(const struct tm *tmptr)
Definition: isotime.c:40
int16_t equation_of_time(const time_t *timer)
Definition: equation_of_time.c:54
unsigned char uint8_t
Definition: stdint.h:80
unsigned long int uint32_t
Definition: stdint.h:100
time_t sun_rise(const time_t *timer)
Definition: sun_rise.c:38
_WEEK_DAYS_
Definition: time.h:340
void set_position(int32_t latitude, int32_t longitude)
time_t mktime(struct tm *timeptr)
Definition: mktime.c:43
uint8_t is_leap_year(int16_t year)
uint8_t month_length(int16_t year, uint8_t month)
time_t time(time_t *timer)
Definition: time.c:41
uint32_t time_t
Definition: time.h:116
void set_dst(int(*)(const time_t *, int32_t *))
Definition: set_dst.c:41
char * asctime(const struct tm *timeptr)
Definition: asctime.c:40
void gmtime_r(const time_t *timer, struct tm *timeptr)
Definition: gmtime_r.c:38
size_t strftime(char *s, size_t maxsize, const char *format, const struct tm *timeptr)
Definition: strftime.c:87
void set_system_time(time_t timestamp)
Definition: set_system_time.c:42
uint32_t fatfs_time(const struct tm *timeptr)
int32_t daylight_seconds(const time_t *timer)
Definition: daylight_seconds.c:43
struct tm * localtime(const time_t *timer)
Definition: localtime.c:40
struct tm * gmtime(const time_t *timer)
Definition: gmtime.c:41
void localtime_r(const time_t *timer, struct tm *timeptr)
Definition: localtime_r.c:43