From owner-freebsd-bugs Sun Apr 26 04:20:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA19548 for freebsd-bugs-outgoing; Sun, 26 Apr 1998 04:12:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA19430 for ; Sun, 26 Apr 1998 04:09:50 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id MAA19296 for ; Sun, 26 Apr 1998 12:09:49 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <354315FC.7532C42D@tdx.co.uk> Date: Sun, 26 Apr 1998 12:09:48 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.ORG Subject: Year 2000 Compliance - localtime? 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... My system is running 3.0-CURRENT as of a few days ago... Looking at the 'localtime' function - it returns a 'tm' structure, including: int tm_year; /* year - 1900 */ Printing the contents of the 'tm_year' only gives the last two digits of the year, i.e. it returns '98' at the moment... Is this right? - or are there some better functions or something I should be using? Regards, Karl Pielorz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message