__TIME__

Top  Previous  Next

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

Also see __DATE__.

 

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;