kre at munnari.OZ.AU
Tue Jul 27 20:00:18 UTC 2004
Date: Tue, 27 Jul 2004 11:52:29 -0700
From: Paul Eggert <eggert at CS.UCLA.EDU>
Message-ID: <87llh5b7v6.fsf at penguin.cs.ucla.edu>
| That "%4ld" doesn't conform to the C standard, which says that leading
| zeros must not be printed for years.
%4ld doesn't print a leading 0, did you actually test that?
| which is strictly conforming even on 32-bit time_t hosts, must print
| "Mon Dec 1 00:00:00 999", without a leading zero before the 999.
I doubt it. It should print
Mon Dec 1 00:00:00 999
Otherwise the \n is in buf instead of buf where it belongs
(where it must be for old code to keep on working).
More information about the tz