How to get the time of the day in C?

Hi Ho Silver silver at xrtll.uucp
Sun Jan 13 07:41:15 AEST 1991


In comp.unix.programmer, hui at shiva.trl.oz (Alvaro Hui) typed:
$ Unfortunately, I "man -k time" and search through all my 'C' books
$and couldn't came up an idea how to get current time in C.

   Look through sys/time.h for a line similar to

time_t time (time_t *timer);

   It returns the calendary time; also look for the definition of time_t.
-- 
 __            __  _  | ...!nexus.yorku.edu!xrtll!silver |  always
(__  | | |  | |_  |_) >----------------------------------< searching
 __) | |_ \/  |__ | \ | if you don't like my posts, type |    for
_____________________/  find / -print|xargs cat|compress |   SNTF



More information about the Comp.unix.programmer mailing list