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++ Language Reference - time 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);

   Description
   The  time function returns the current time in seconds  elapsed  since
   00:00:00  1 January 1970 and stores that value in *timeptr if  timeptr
   is not NULL.

   Example
   #include <time.h>
   #include <stdio.h>
   main()
   {
   time_t ntime;
        time(&ntime);
        printf("The time is: %s\n",ctime(&ntime));
   }

   Return Value
   time returns the number of seconds since 00:00:00 1 January 1970.


See Also: ctime asctime localtime mktime

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