Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>time</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
time

Usage

   #include <time.h>
   time_t time(time_t *timeptr);

   ANSI

Description

   The time function returns the current time in seconds elapsed since
   00:00:00 GMT on January 1, 1970 and stores that value in *timeptr if

   timeptr is not NULL.

Example 

   #include <time.h>
   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       time_t ntime;
       time(&ntime);
       printf("The time is: %s\n",ctime(&ntime));
       return EXIT_SUCCESS;
   }

Return Value

   time returns the number of seconds since 00:00:00 GMT on January 1, 1970.


See Also

   ctime, asctime, localtime, mktime



See Also: ctime asctime localtime mktime

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson