Ta,
I'm supposd to be GMT+2
------------
[EMAIL PROTECTED] root]# uname -a
Linux starfire 2.4.20 #1 Fri Feb 7 10:29:48 SAST 2003 i586 unknown
[EMAIL PROTECTED] root]# ./tz
dl=1
tz=-7200
[EMAIL PROTECTED] root]# date
Mon Jul 21 21:45:50 SAST 2003
[EMAIL PROTECTED] root]#
----------------------
BTW, for the people not knowing how to compile this on Unix...
gcc -o tz tz.c (tz.c being a file you paste the specified code)
**Please note there is a ; missing after return 0 which you will need to
add, which was missing from previous mails, if you havent worked out why it
didnt compile. :)
-------Code---------
#include <stdio.h>
#include <time.h>
int main(void) {
tzset();
printf("dl=%d\n", daylight);
printf("tz=%ld\n", timezone);
return 0;
}
---------------
----- Original Message -----
From: "Davide Libenzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 21, 2003 5:41 PM
Subject: [xmail] Re: Log Rotation
>
> On Mon, 21 Jul 2003, Richard Mayhew wrote:
>
> >
> > I could run it for the Unix Side, All my servers are having this
problem.
> > (The time is synced with the world clocks.)
> >
> > Plz send me a copy of the c program..
>
>
> #include <stdio.h>
> #include <time.h>
>
>
> int main(void) {
>
> tzset();
> printf("dl=%d\n", daylight);
> printf("tz=%ld\n", timezone);
> 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]
>
>
-
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]