This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/30867] Can we have a new __DATE__ which is sortable, eg YYYY-MM-DD



------- Comment #4 from alf dot lacis at aiscientific dot com  2007-06-12 23:33 -------
I did *not* say I wanted a new format for __DATE__ & __TIME__ (reread my
request).

I wanted *new* macros.  For example:
Macro:         Expands to:
__YYYY_MM_DD__  2007-02-20 also know as 'Swedish format' (new)
__YYYYMMDD__    20070220   as above, but no delimiters (new)
__HH_MM_SS__    15:51:52  24-hour format (new, but actually same as __TIME__)
__HHMMSS__      155152    as above, but no delimiters (new)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30867


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]