Search Unity

Compile-time timestamp

Discussion in 'Scripting' started by Mark-Ripley, Feb 24, 2011.

  1. Mark-Ripley

    Mark-Ripley

    Joined:
    Aug 22, 2007
    Posts:
    148
    Is there a define or anything to get at the time and date at compile time?

    I was thinking of implementing a version number, such like:

    Code (csharp):
    1.  myGuiText.text = "v " + __DATE__ + ", " + __TIME__ ;