home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cuj9301.zip / 1101014B < prev    next >
Text File  |  1992-11-09  |  264b  |  16 lines

  1. /* time function -- UNIX version */
  2. #include <time.h>
  3.  
  4.         /* UNIX system call */
  5. time_t _Time(time_t *);
  6.  
  7. time_t (time)(time_t *tod)
  8.     {    /* return calendar time */
  9.     time_t t = _Time(NULL) + (70*365LU+17)*86400;
  10.  
  11.     if (tod)
  12.         *tod = t;
  13.     return (t);
  14.     }
  15.  
  16.