[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
atleast

Kaustubh

-----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


Hey,

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)

Greetings,

Mark



-- 
View this message in context:
http://www.nabble.com/Build-Date-and-Time-tf2725122.html#a7600026
Sent from the MicroControllers - Ethernut mailing list archive at
Nabble.com.

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://lists.egnite.de/mailman/listinfo/en-nut-discussion





More information about the En-Nut-Discussion mailing list