[En-Nut-Discussion] Build Date and Time
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Nov 29 15:00:08 CET 2006
>>>>> "Lokker," == Lokker, Ronald <R.Lokker at krohne-altometer.nl> writes:
Lokker,> Hallo nut developers
Lokker,> are there a methode to have the build date and time in a
Lokker,> variabele to display at a LCD or send to a Uart for version
Lokker,> management
Lokker,> so every time that i compiled that i can see the date and
Lokker,> time by run time
In my Makefile, I have:
CDATE = `date +%s`
HWDEF += -DCDATE=$(CDATE)
and in my code:
unsigned long cdate =CDATE;
This is only a 32 bit number, no easy way to go back to a readable date.
Lokker,> Ronald:-) ====================================== DISCLAIMER
Lokker,> =================================== NOTE: The information
Lokker,> transmitted in this email is for the person or entity to which
Lokker,> ...
Please consider not to send such lonag and non-applying disclaimers to public
mailing lists.
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list