How about just calculating the difference between the unix clock and
the CMOS clock. If that's within 10 minutes of a whole number of hours,
then you can safely round it to "a whole number of hours".
Roger.
-- ** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ ** Florida -- A 39 year old construction worker woke up this morning when a 109-car freigt train drove over him. According to the police the man was drunk. The man himself claims he slipped while walking the dog. 080897