And the answer is ...

Although it is not so documented, apparently __TIMESTAMP__ is a C (not C++) 
-only feature.

I am further informed that __TIMESTAMP__ is not part of the C standard, so I am 
out of luck.

Charles

On Sat, 1 Jul 2023 16:52:20 -0500, Charles Mills <charl...@mcn.org> wrote:

>I am using XLC __TIMESTAMP__ for the first (!) time. The source file is in 
>UNIX and definitely has a timestamp. Here is the code
>
>static const char versionMsg[] = "blah blah, Built " __DATE__ " " __TIME__ ", 
>Source timestamp " __TIMESTAMP__ ; 
>
>The message is displaying as
>
>blah blah, Built Jul  1 2023 14:12:35, Source timestamp Mon Jan  1  0:00:01 
>1990   

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to