From owner-freebsd-questions Mon Sep 22 08:27:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA19278 for questions-outgoing; Mon, 22 Sep 1997 08:27:24 -0700 (PDT) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA19256 for ; Mon, 22 Sep 1997 08:27:16 -0700 (PDT) Received: from ws6303-f (root@firix [10.1.143.100]) by zwei.siemens.at with ESMTP id RAA25063; Mon, 22 Sep 1997 17:26:23 +0200 (MET DST) Received: from ws6423.gud.siemens.at (ws6423-f) by ws6303-f with ESMTP (1.40.112.8/16.2) id AA088911954; Mon, 22 Sep 1997 17:25:54 +0200 Received: by ws6423.gud.siemens.at (SMI-8.6/SMI-SVR4) id RAA04959; Mon, 22 Sep 1997 17:25:07 +0200 Date: Mon, 22 Sep 1997 17:25:07 +0200 From: lada@ws6303.gud.siemens.at (marino.ladavac@siemens.at) Message-Id: <199709221525.RAA04959@ws6423.gud.siemens.at> To: freebsd-questions@FreeBSD.ORG, dfed@run.net Subject: Re: Year 2000 ! Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Md5: nKGCHVh6Yc8DmsMm0qSOaQ== Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 17:05:15 MET 1997 > Date: Mon, 22 Sep 1997 17:55:10 +0300 > From: Dmitri Fedorov > Mime-Version: 1.0 > To: freebsd-questions@FreeBSD.ORG > Subject: Year 2000 ! > Content-Transfer-Encoding: 7bit > X-Loop: FreeBSD.org > > Hello, > could you,please,answer me how FreeBSD will be adopted to Year2000 ? > > How will it be solved ? (I am interested in localtime(), ctime() > and so on functions.) Not at all. The year 2000 never was a problem. The year 2038 is another matter, but I strongly suspect that we will not be using 32 bit machines at that time any more (nor UNIX, but that is another, regrettable, matter). If you wanted more technical detail, the UNIX systems deal in seconds after Epoch (01. 01. 1970. 00:00:00) and store them as time_t, which is a long int on FreeBSD and virtually all unices (some other systems store it as a normalized double mantissa and have 53 instead of 31 bits of precision--this is somewhat against C and POSIX standards which mandate integral type for time_t). Sometime in mid-January 2038 will the 32 bit time_t become negative; thus the above comment. The other great time entity in C and POSIX is struct tm which has int fields for day-of-month, month, and year. This one is safe until at least the year 34667--I don't expect to be there at that time. > > Thanks, > Dmitri Fedorov, RUNNet. > > >