|
PatchworkOS
|
#include <stdint.h>#include "_internal/NULL.h"#include "_internal/clock_t.h"#include "_internal/config.h"#include "_internal/size_t.h"#include "_internal/time_t.h"#include "_internal/timespec.h"Go to the source code of this file.
Data Structures | |
| struct | tm |
Macros | |
| #define | TIME_UTC 1 |
Functions | |
| _PUBLIC clock_t | clock (void) |
| _PUBLIC double | difftime (time_t time1, time_t time0) |
| _PUBLIC time_t | mktime (struct tm *timeptr) |
| _PUBLIC time_t | time (time_t *timer) |
| _PUBLIC int | timespec_get (struct timespec *ts, int base) |
| _PUBLIC char * | asctime (const struct tm *timeptr) |
| _PUBLIC char * | ctime (const time_t *timer) |
| _PUBLIC struct tm * | gmtime (const time_t *timer) |
| _PUBLIC struct tm * | localtime (const time_t *timer) |
| _PUBLIC struct tm * | localtime_r (const time_t *timer, struct tm *buf) |
| _PUBLIC size_t | strftime (char *_RESTRICT s, size_t maxsize, const char *_RESTRICT format, const struct tm *_RESTRICT timeptr) |
Definition at line 6 of file localtime_r.c.
References _time_days_in_month(), _time_is_leap_year(), _time_zone(), NULL, _time_zone_t::secondsOffset, timeZone, tm::tm_hour, tm::tm_isdst, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, tm::tm_wday, tm::tm_yday, and tm::tm_year.
Referenced by localtime(), print_stat(), and taskbar_update_clock().
Definition at line 5 of file mktime.c.
References _time_day_of_week(), _time_day_of_year(), _time_is_leap_year(), _time_normalize(), tm::tm_hour, tm::tm_isdst, tm::tm_min, tm::tm_sec, tm::tm_yday, tm::tm_year, and y.
Referenced by timer_init().
| _PUBLIC size_t strftime | ( | char *_RESTRICT | s, |
| size_t | maxsize, | ||
| const char *_RESTRICT | format, | ||
| const struct tm *_RESTRICT | timeptr | ||
| ) |
Definition at line 5 of file time.c.
References _syscall_unix_epoch(), NULL, and time().
Referenced by dwm_poll(), procedure(), rtc_read(), taskbar_update_clock(), time(), timer_init(), and timer_uptime().