ARM Technical Support Knowledge Articles

__DATE__ AND __TIME__ MACROS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2006-06-26 15:41:46

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential