Skip to main content
JMerr.2
Associate
June 10, 2020
Question

Is there anyway to automatically add the date as a symbol in cube IDE? I would like to be able to read the programmed date in my program without manually adding a timestamp symbol.

  • June 10, 2020
  • 2 replies
  • 938 views

..

This topic has been closed for replies.

2 replies

TDK
Super User
June 10, 2020

The __DATE__ and __TIME__ preprocessor macros can be used to do this. They will expand to strings of the compilation time.

"If you feel a post has answered your question, please click ""Accept as Solution""."
JMerr.2
JMerr.2Author
Associate
June 10, 2020

This does exactly what I needed. Thanks for the pointer (pun intended)!