What are the possibilities to know at compile time the time and date (BUILDTIME) in order to include in the binaries (executable/libraries) the information about the moment in which they have been created, in a portable way?
We have currently a solution that uses sh.exe, and requires to install msys under Windows, but I was wondering if it was possible doing without it.
Searching things like "build time/date", "compile time/date" did not lead to any relevant result.
Edit:
When I got to know about __TIME__
, it was then possible to find this question had previously been asked: Recording the time when you compile a source