Keil™, An ARM® Company

Technical Support

C51: __DATE__ AND __TIME__ MACROS


Information in this article applies to:

  • C51 All Versions

QUESTION

Is it possible to insert the date and time into my program?

ANSWER

Yes.

Use the __DATE__ and __TIME__ predefined macros. For example:

char code my_date[] = "Compile Date = " __DATE__;
char code my_time[] = "Compile Time = " __TIME__;

MORE INFORMATION

SEE ALSO

Last Reviewed: Monday, June 26, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure