[En-Nut-Discussion] Build Date and Time

Kaustubh Ashtekar kaustubh at embeddedmachines.com
Sat Dec 9 10:57:33 CET 2006

No this is not dependant on GNU and also works on Microsoft compilers


-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Mark van der Waal
van Dij
Sent: Wednesday, November 29, 2006 7:45 PM
To: en-nut-discussion at egnite.de
Subject: Re: [En-Nut-Discussion] Build Date and Time


Sorry if this mail comes trough twice, I've registered at Nabble to avoid
the big disclaimer our company places after every outgoing e-mail ;)

I found out printing date and time can be achieved by using these macros:

printf("Build Date: %s, Time: %s", __DATE__,__TIME__);

This prints out at the terminal:

Build Date: Nov 29 2006, Time: 15:00:16

(date it was compiled)

I don't know if this macro is dependent on compiler (using GNU)



View this message in context:
Sent from the MicroControllers - Ethernut mailing list archive at

En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de

More information about the En-Nut-Discussion mailing list