changeset 17 | 5b6294779007 |
parent 10 | 442bed4a072e |
16:e08bdbec1843 | 17:5b6294779007 |
---|---|
20 struct tm *timtm; |
20 struct tm *timtm; |
21 #ifdef LOCALE |
21 #ifdef LOCALE |
22 setlocale(LC_TIME, LOCALE); |
22 setlocale(LC_TIME, LOCALE); |
23 #endif |
23 #endif |
24 |
24 |
25 #ifdef TIMEZONE |
|
25 setenv("TZ", TIMEZONE, 1); |
26 setenv("TZ", TIMEZONE, 1); |
27 #endif |
|
26 |
28 |
27 while (1) { |
29 while (1) { |
28 bzero(buf, sizeof(buf)); |
30 bzero(buf, sizeof(buf)); |
29 tim = time(NULL); |
31 tim = time(NULL); |
30 timtm = localtime(&tim); |
32 timtm = localtime(&tim); |