From owner-freebsd-hackers Tue Jul 23 10:54:43 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA29460 for hackers-outgoing; Tue, 23 Jul 1996 10:54:43 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA29193 for ; Tue, 23 Jul 1996 10:51:31 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA26415 for ; Tue, 23 Jul 1996 19:51:26 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA22312 for freebsd-hackers@freebsd.org; Tue, 23 Jul 1996 19:51:26 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id TAA10634 for freebsd-hackers@freebsd.org; Tue, 23 Jul 1996 19:30:18 +0200 (MET DST) From: J Wunsch Message-Id: <199607231730.TAA10634@uriah.heep.sax.de> Subject: Re: changing localtime() behaviour To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Tue, 23 Jul 1996 19:30:18 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Brandon Gillespie at "Jul 23, 96 09:30:39 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Brandon Gillespie wrote: > How would one go about changing the behavior of localtime() so that > the value for struct tm.tm_year has the thousands in the year, ala '1996' > rather than just '96'? This would violate ANSI. It's been short-sightened of ANSI to define this behaviour, but we now have to live with it that the year 2000 will have the tm_year representation of 100. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)