Recording Build Date

Does anyone know if there a feature in the Qcc compiler that can record the date & time when an application was built, so that this can be retrieved & displayed at runtime.

Is there a #directive that sets this?

I seem to recall that there is something like this but I have no idea where to find any information on it.

Thanks,

Ian

you can do it at compile time using a -D define that’s set by the result of the ‘date’ shell command …

jean-louis

Thanks for the pointer.
I was not aware of the TIME and DATE macros within the compiler. Now that I know about them this becomes much easier!.
All working fine now. :smiley:

Ian