[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: time offsets
From: |
Rory Toma |
Subject: |
Re: time offsets |
Date: |
13 Aug 2002 15:23:42 -0700 |
I'll check it in after I test on Solaris and get my FreeBSD working.
On Tue, 2002-08-13 at 15:19, Jan-Henrik Haukeland wrote:
> 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
>
>
> --
> To unsubscribe:
> http://mail.freesoftware.fsf.org/mailman/listinfo/monit-general
>
--
Rory Toma address@hidden
VP of Run Level 5 http://www.trs80.net
Digeo Digital http://www.digeo.com
signature.asc
Description: This is a digitally signed message part
time offsets, Rory Toma, 2002/08/13
- Re: time offsets, Christian Hopp, 2002/08/13
- Re: time offsets, Jan-Henrik Haukeland, 2002/08/13
- Re: time offsets,
Rory Toma <=
- Re: time offsets, Christian Hopp, 2002/08/14
- Re: time offsets, rory, 2002/08/14
- Re: time offsets, Mark Ferlatte, 2002/08/14
- Re: time offsets, Jan-Henrik Haukeland, 2002/08/14
- Re: time offsets, Rory Toma, 2002/08/14
- Re: time offsets, Rory Toma, 2002/08/14
- Re: time offsets, Jan-Henrik Haukeland, 2002/08/14
- Re: time offsets, Rory Toma, 2002/08/14
- Re: time offsets, Mark Ferlatte, 2002/08/14
- Re: time offsets, Jan-Henrik Haukeland, 2002/08/14