From owner-freebsd-bugs Sun Apr 26 07:59:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA06765 for freebsd-bugs-outgoing; Sun, 26 Apr 1998 07:53:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from localhost.zilker.net (jump-k56flex-0113.jumpnet.com [207.8.6.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05292 for ; Sun, 26 Apr 1998 07:39:04 -0700 (PDT) (envelope-from marquard@zilker.net) Received: (from marquard@localhost) by localhost.zilker.net (8.8.8/8.8.3) id JAA10096; Sun, 26 Apr 1998 09:38:05 -0500 (CDT) To: freebsd-bugs@FreeBSD.ORG Subject: Re: Year 2000 Compliance - localtime? References: <354315FC.7532C42D@tdx.co.uk> From: Dave Marquardt Date: 26 Apr 1998 09:36:43 -0500 In-Reply-To: Karl Pielorz's message of "Sun, 26 Apr 1998 12:09:48 +0100" Message-ID: <85vhrwir9g.fsf@localhost.zilker.net> Lines: 16 X-Mailer: Quassia Gnus v0.22/XEmacs 19.16 - "Lille" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Karl Pielorz writes: > 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... So print tm_year+1900 and you'll be fine.... -Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message