home *** CD-ROM | disk | FTP | other *** search
/ Dream 41 / Amiga_Dream_41.iso / Amiga / Programmation / c / PDC.lha / PDC / bin.lzh / include / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-06  |  1.5 KB  |  45 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  *
  5.  * This code is freely redistributable upon the conditions that this 
  6.  * notice remains intact and that modified versions of this file not
  7.  * be included as part of the PDC Software Distribution without the
  8.  * express consent of the copyright holders.  No warrantee of any
  9.  * kind is provided with this code.  For further information, contact:
  10.  *
  11.  *  PDC Software Distribution    Internet:                     BIX:
  12.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  13.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  14.  */
  15.  
  16. /* time.h - standard C time functions and definitions */
  17.  
  18. #define CLK_TCK 50  
  19. typedef long time_t;
  20. typedef long clock_t;
  21.  
  22. struct tm {
  23.     int tm_sec;   /* seconds; range 0..59 */
  24.     int tm_min;   /* minutes; range 0..59 */
  25.     int tm_hour;  /* hours since midnight; range 0..23 */
  26.     int tm_mday;  /* day of month; range 1..31 */
  27.     int tm_mon;   /* month; range 0..11 */
  28.     int tm_year;  /* year; with 0==1900 */
  29.     int tm_wday;  /* day of week; range Sun=0..6 */
  30.     int tm_yday;  /* day of year; range 0..365 */
  31.     int tm_isdst; /* nonzero implies daylight savings */
  32. };
  33.  
  34. extern clock_t    clock();
  35. extern time_t     time();
  36. extern char      *asctime();
  37. extern char      *ctime();
  38. extern struct tm *gmtime();
  39. extern struct tm *localtime();
  40. extern time_t     mktime();
  41. extern double     difftime();
  42.  
  43. extern double     jday();
  44. extern int        dayofw();
  45.