Add system time and date of compilation / build into the cod
Posted:
Mon Oct 26, 2015 9:20 pm
by radim100
Hi , I would like to embed time/date of compilation for revision version indication. Is there any system variable for that ?
Radim .
Re: Add system time and date of compilation / build into the
Posted:
Mon Oct 26, 2015 11:27 pm
by lethe
GCC defines the preprocessor macros __DATE__ and __TIME__ for that purpose:
https://gcc.gnu.org/onlinedocs/cpp/Stan ... acros.html
Re: Add system time and date of compilation / build into the
Posted:
Tue Oct 27, 2015 10:00 am
by radim100
Hi , Thanks for help .It worked .
Radim .