Hi..
I have small problem, I want to get a system date while compiling my code in CCS4.
May be some thing like #define date="system date"
Can any one tell me how to do that?
Thanks in advane
Abhijit kelkar
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.
Hi..
I have small problem, I want to get a system date while compiling my code in CCS4.
May be some thing like #define date="system date"
Can any one tell me how to do that?
Thanks in advane
Abhijit kelkar
Abhijit,
The TI C28x and ARM (TMS470) compilers support the standard ISO macros __DATE__ and __TIME__ to get compile-time date / time.
For more information look at Page 40 in http://www.ti.com/lit/ug/spru514d/spru514d.pdf.
Regards,
Harrison
Harrison ,
thanks for details.
I have gone th' it and tried in my project.
In one of my .h file I have defined
#define Dated __DATE__
and in one of C file, I am using
date=Dated;
where date is defined as
char* date;
with above code, I got partial resulst in date as "FEB 7 201"
I am not clear why it is not taking 4th digit of year.
Can you shed some light?
thanks in anticipation
warm regards
Abhijit