__DATE__

Top  Previous  Next

__DATE__ returns a STRING with the system date at the time of compilation. This is especially useful for debugging purposes.

Also see __TIME__.

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Show the compilation time/date:
DebugMsg(message := "The compilation time is "+__TIME__);

DebugMsg(message := "The compilation date is "+__DATE__);

 
 
END_PROGRAM;