Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

__TIME__ - Output compilation time (macro)

&pagelevel(4)&pagelevel

Definition

__TIME__

This macro generates the time of compilation of a source file as a string in the form:

"hh:mm:ss\0"

where 

hh

hours

mm

minutes

ss

seconds

Notes

The format of the time information corresponds to the asctime function.

This macro does not have to be defined in an include file. Its name is recognized and replaced by the compiler.

Example

#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Program %s was compiled on %s at %s hours\n", argv[0],
__DATE__, __TIME__);
return 0;
}

See also

asctime, __DATE__