1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
17 lines
331 B
C
17 lines
331 B
C
#include <time.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
extern int daylight;
|
|
extern long timezone;
|
|
extern char *tzname[2];
|
|
void tzset(void);
|
|
|
|
int main(void) {
|
|
tzset();
|
|
printf("tzname[0] %s, tzname[1] %s, daylight %d, timezone %ld\n",
|
|
tzname[0], tzname[1], daylight, timezone);
|
|
return 0;
|
|
}
|