asctime.c

Michael Lindner mlindner at idttechnology.com
Wed Jul 28 14:20:01 UTC 2004


Olson, Arthur David (NIH/NCI) wrote:
> Is using "%-4ld" to print the year a happy medium?

OK, some advice probably nobody wants from a timezone lurker... :-)

I would rather see digits appear in the same position in the string if 
possible (i.e. right justified, blank filled). My reasoning? The 
existing behavior has the day of month and hour printed that way (right 
justified, blank filled). I vote for %4ld, which for me fulfils the 
principle of least surprise.

-- 
Michael Lindner



More information about the tz mailing list