This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to get compile time as long number constant

Hi would like to access the compile time as a number of seconds from a specific known offset, such as 1/1/1970 or 1/1/2000. So for instance the equivalent to 

#define __COMPILE_TIME_  1646210916

where that number corresponds to now in number of seconds since 1/1/1970 (UNIX time).