Search This Blog

Monday 5 November 2012

Time in C++


Syntax: After #include<ctime> as header, write time(0) OR time(NULL) in the body of program.

The manpage states that, « time() returns the time as the number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). »

No comments:

Post a Comment