On Wed, 10 Sep 2003, Rob Arends wrote:
>
> Davide,
> A while ago I sent an email to the list (see below "Friday, July 25, 2003
> 1:29 PM"), but got no response.
>
> I have recently installed 1.17pre06 (on w2k SP4) and still have the problem.
> To recap......
> The problem causes the log file to rotate at 23:00 rather than 00:00
>
> I have run your program..
>
> #include <stdio.h>
> #include <time.h>
>
> int main(void) {
>
> tzset();
> printf("dl=%d\n", _daylight);
> printf("tz=%ld\n", _timezone);
> return 0;
> }
>
> and got the following results.
> dl=1
> tz=-36000
Mind ppl living on the South Emisphere trying this :
#include <stdio.h>
#include <time.h>
int main(void) {
time_t tc;
struct tm tmc;
tzset();
tc = time(NULL);
tmc = *localtime(&tc);
#ifdef __GNUC__
printf("tz=%ld\n", timezone);
printf("dlp=%d\n", daylight);
#else
printf("tz=%ld\n", _timezone);
printf("dlp=%d\n", _daylight);
#endif
printf("dla=%d\n", tmc.tm_isdst);
return 0;
}
- Davide
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]