home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDLFILE / TIME.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  1.1 KB  |  40 lines

  1. /* Copyright 1987 Manx Software Systems, Inc */
  2. #ifndef _TIME_H
  3. #define _TIME_H
  4. #define NULL ((void *)0)
  5. # ifndef _SIZE_T
  6. # define _SIZE_T
  7.   typedef unsigned int size_t;
  8. # endif
  9.  
  10. #define CLK_TCK 200    /* clock() ticks per second */
  11. typedef unsigned long clock_t;
  12. # ifndef _TIME_T
  13. # define _TIME_T
  14.   typedef unsigned long time_t;
  15. #endif
  16.  
  17. #define _TINY_TIME_T ((time_t)0x210000)        /* Tue Jan  1 00:00:00 1980 */
  18. #define _HUGE_TIME_T ((time_t)0xef9fbf7d)    /* Thu Dec 31 23:59:58 2099 */
  19.  
  20. struct tm {
  21.     int tm_sec;        /* seconds after the minute [0,59] */
  22.     int tm_min;        /* minutes after the hour [0,59] */
  23.     int tm_hour;    /* hours since midnight [0,23] */
  24.     int tm_mday;    /* day of the month [1,31] */
  25.     int tm_mon;        /* months since jan [0,11] */
  26.     int tm_year;    /* years since 1900 */
  27.     int tm_wday;    /* days since sunday [0,6] */
  28.     int tm_yday;    /* days since jan 1 [0,365] */
  29.     int tm_isdst;    /* pos if DST in effect; 0 if not; neg if can't tell */
  30.     int tm_hsec;    /* hundreths of second; not in ANSI C */
  31. };
  32.  
  33. clock_t clock();
  34. double difftime();
  35. time_t mktime(), time();
  36. char *asctime(), *ctime();
  37. struct tm *gmtime(), *localtime();
  38. size_t strftime();
  39. #endif
  40.