122 time_t
time(time_t *timer);
161 typedef unsigned long clock_t;
162 extern char *_CLOCKS_PER_SEC_;
163 #define CLOCKS_PER_SEC ((clock_t) _CLOCKS_PER_SEC_)
164 extern clock_t clock(
void);
193 struct tm *
gmtime(
const time_t * timer);
198 void gmtime_r(
const time_t * timer,
struct tm * timeptr);
216 char *
asctime(
const struct tm * timeptr);
221 void asctime_r(
const struct tm * timeptr,
char *buf);
226 char *
ctime(
const time_t * timer);
231 void ctime_r(
const time_t * timer,
char *buf);
251 size_t strftime(
char *s,
size_t maxsize,
const char *format,
const struct tm * timeptr);
404 #define ONE_HOUR 3600
407 #define ONE_DEGREE 3600
410 #define ONE_DAY 86400
422 #define UNIX_OFFSET 946684800
434 #define NTP_OFFSET 3155673600
475 time_t
sun_rise(
const time_t * timer);
480 time_t
sun_set(
const time_t * timer);
int8_t tm_mday
Definition: time.h:148
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:339
int8_t tm_min
Definition: time.h:146
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
int16_t tm_yday
Definition: time.h:152
int16_t tm_isdst
Definition: time.h:153
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
int week
Definition: time.h:382
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:88
signed char int8_t
Definition: stdint.h:78
int day
Definition: time.h:383
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
int16_t tm_year
Definition: time.h:151
int8_t tm_sec
Definition: time.h:145
signed long int int32_t
Definition: stdint.h:98
int8_t tm_hour
Definition: time.h:147
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:83
int8_t tm_wday
Definition: time.h:149
unsigned long int uint32_t
Definition: stdint.h:103
time_t sun_rise(const time_t *timer)
Definition: sun_rise.c:38
_WEEK_DAYS_
Definition: time.h:326
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)
int8_t tm_mon
Definition: time.h:150
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
int year
Definition: time.h:381
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