monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time offsets


From: Jan-Henrik Haukeland
Subject: Re: time offsets
Date: 14 Aug 2002 00:19:37 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service)

Rory Toma <address@hidden> writes:

> In util.c I noticed that following code:
> 
> <   timezone_h= -(timezone/3600)+daylight;
> <   timezone_m= abs(timezone/60)%60;
> 
> Now, this wouldn't compile out of the box on FreeBSD, so I looked at
> some man pages.
> 
> Isn't something like:
> 
> >   tm_now = localtime(&now);
> > 
> >   timezone_h = -(tm_now->tm_gmtoff/3600);
> >   timezone_m = abs(tm_now->tm_gmtoff/60)%60;
> 
> more portable?

Please check it into cvs then if it works

-- 
Jan-Henrik Haukeland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]