tzset()
This commit is contained in:
@@ -134,6 +134,7 @@ extern struct _timezone {
|
||||
int __fastcall__ clock_getres (clockid_t clock_id, struct timespec *res);
|
||||
int __fastcall__ clock_gettime (clockid_t clock_id, struct timespec *tp);
|
||||
int __fastcall__ clock_settime (clockid_t clock_id, const struct timespec *tp);
|
||||
void tzset (void);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
9
libsrc/rp6502/tzset.c
Normal file
9
libsrc/rp6502/tzset.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <rp6502.h>
|
||||
#include <time.h>
|
||||
|
||||
int clock_gettimezone (clockid_t clock_id, struct _timezone* tz);
|
||||
|
||||
void tzset (void)
|
||||
{
|
||||
clock_gettimezone (CLOCK_REALTIME, &_tz);
|
||||
}
|
||||
Reference in New Issue
Block a user