[coreboot] [PATCH]Use __DATE__ and __TIME__ instead of date(1)

Frieder Ferlemann Frieder.Ferlemann at gmx.de
Sat Sep 25 16:45:50 CEST 2010


Hi Patrick,

Am 25.09.2010 16:16, schrieb Patrick Georgi:
> Am 25.09.2010 15:53, schrieb Frieder Ferlemann:
>> Maybe use a date format which is closer to ISO 8601?
> How do I specify that in "__DATE__" which this thread and patch is about?

Sorry that I kind of highjacked the mail thread
to request a specific output format instead of
concentrating on the implementation.

And sorry I cannot think on how to get an ISO 8601
format derived from "__DATE__" or "__TIME__":

Unfortunately C99 (according to  WG14/N1256 ISO/IEC 9899:TC3, section 6.10.8)
specifies "__DATE__" as
... [a character string literal of the form "Mmm dd yyyy", where] ...
but would also allows for an [implementation-defined valid date] ...

Greetings,
Frieder




More information about the coreboot mailing list