*BSD News Article 25691


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!news.bu.edu!att-in!att!allegra!hgs
From: hgs@allegra.att.com (Henning G. Schulzrinne)
Subject: ntp, time, timezones
Message-ID: <1994Jan7.160541.17677@allegra.att.com>
Organization: AT&T Bell Laboratories, Murray Hill, NJ
Date: Fri, 7 Jan 1994 16:05:41 GMT
Lines: 22

First, I now have (what appears to be) a working copy of xntp, version
3 up on netbsd 0.9. (The version on agate is ancient and does not
support NTPv3, the current spec.) Indications of interest are welcome.

In testing, I discovered that ctime() translates the second count
differently on my Sun (SunOS 4.1.1) and NetBSD, with an offset of
14 seconds, apparently. E.g.
On NetBSD:
 gettimeofday()    time()    ctime()
 757958070.532501  757958070 Fri Jan  7 15:54:16 1994
On Sun:
 757958070.501251  757958070 Fri Jan  7 10:54:30 1994

This is rather strange, naturally. Anything to do with leap seconds?

Finally, is there any way to set the timezone without recompiling the
kernel? (zic(8) doesn't seem to exist except as a man page).

Thank you.

Henning Schulzrinne