Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 1996 19:30:18 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: changing localtime() behaviour
Message-ID:  <199607231730.TAA10634@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.91.960723092923.19204A-100000@tombstone.sunrem.com> from Brandon Gillespie at "Jul 23, 96 09:30:39 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607231730.TAA10634>