Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.bugs.4bsd Subject: Re: ctime(3) and leap seconds :-) Message-ID: <6976@brl-smoke.ARPA> Date: 8 Jan 88 04:44:21 GMT References: <604@PT.CS.CMU.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 Keywords: ctime, leap second, epoch In article <604@PT.CS.CMU.EDU> bww@K.GP.CS.CMU.EDU (Bradley White) writes: > The time routines in the C library know nothing about leap > seconds. This means that the correspondence between the > number of seconds since the epoch and the actual time of > day is broken. The C library time routines are not PERMITTED to know about leap seconds, according to the current draft proposed ANSI C standard. You should set the system clock so that ctime() reports the correct time of day.