asctime.c

Clive D.W. Feather clive at demon.net
Wed Jul 28 04:55:44 UTC 2004


Paul Eggert said:
>> The most postable format is %02.2d
> Yes, I suppose this is the most portable to ancient hosts, but
> unfortunately GCC complains about it:
>    warning: `0' flag ignored with precision and `%d' printf format

That's right: the C Standard says that 0 is ignored if there's a precision.

-- 
Clive D.W. Feather  | Work:  <clive at demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive at davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |



More information about the tz mailing list