diff options
Diffstat (limited to 'nuttx/include/time.h')
-rw-r--r-- | nuttx/include/time.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nuttx/include/time.h b/nuttx/include/time.h index 6596bf32f..88f4606d5 100644 --- a/nuttx/include/time.h +++ b/nuttx/include/time.h @@ -168,14 +168,20 @@ extern "C" #define EXTERN extern #endif +#ifdef CONFIG_LIBC_LOCALTIME + /* daylight - Daylight savings time flag */ /* EXTERN int daylight; not supported */ /* timezone - Difference from UTC and local standard time */ /* EXTERN long int timezone; not supported */ -/* tzname[] - Timezone strings */ -/* EXTERN FAR char *tzname[]; not supported */ +/* tzname[] - Timezone strings + * Setup by tzset() + */ + +EXTERN FAR char *tzname[2]; +#endif /******************************************************************************** * Public Function Prototypes @@ -206,6 +212,10 @@ int timer_getoverrun(timer_t timerid); int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp); +#ifdef CONFIG_LIBC_LOCALTIME +void tzset(void); +#endif + #undef EXTERN #if defined(__cplusplus) } |