C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Predefined Time and File Macros
                                             ◄Up► ◄Contents► ◄Index► ◄Back►
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Macro:      __DATE__, __TIME__, __TIMESTAMP__, __FILE__, __LINE__
 
  Summary:    The following predefined macros provide information
              about the state of the compilation and the source file:
 
              Macro            Description
 
              __TIME__         The time of compilation, expressed
                               as a string literal in the form:
 
                                  hh:mm:ss
 
              __DATE__         The date of compilation, expressed
                               as a string literal in the form:
 
                                  Mmm dd yyyy
 
              __TIMESTAMP__    The date and time of the last
                               modification of the source file,
                               expressed as a string literal in
                               the form:
 
                                  Ddd Mmm hh:mm:ss yyyy
 
              __FILE__         The current source filename.
 
              __LINE__         The current source filename.
                                    -♦-