From owner-freebsd-bugs Sun Apr 26 16:06:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA03521 for freebsd-bugs-outgoing; Sun, 26 Apr 1998 16:05:47 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02228 for ; Sun, 26 Apr 1998 15:52:10 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id AAA00669; Mon, 27 Apr 1998 00:51:54 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804262251.AAA00669@rvc1.informatik.ba-stuttgart.de> Subject: Re: Year 2000 Compliance - localtime? In-Reply-To: <354315FC.7532C42D@tdx.co.uk> from Karl Pielorz at "Apr 26, 98 12:09:48 pm" To: kpielorz@tdx.co.uk (Karl Pielorz) Date: Mon, 27 Apr 1998 00:51:54 +0200 (MET DST) Cc: freebsd-bugs@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm writing a program at the moment that does some date manipulation... > Is this right? - or are there some better functions or something I should be > using? The calendar library (man 3 calendar) might be helpful. The core of this library are conversion routines for two representation of dates: -- month day year -- number of days since Jan 1, 1 BC. (That is the year before the year one, called ``year 0'' by astronomers and 1 BC by historians). These conversion routines can be exploited to easily code all kinds of date arithmetic. The command ncal(1) relies on them. Wolfgang To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message