home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-15  |  541 b   |  27 lines

  1. #ifndef _INCLUDE_TIME_H
  2. #define _INCLUDE_TIME_H
  3.  
  4. typedef unsigned time_t;
  5. typedef unsigned clock_t;
  6.  
  7. struct tm
  8. { int tm_sec, tm_min, tm_hour, tm_mday, tm_mon, tm_year,
  9.       tm_wday, tm_yday, tm_idst;
  10. };
  11.  
  12. time_t time(time_t*);
  13. struct tm *gmtime(const time_t*);
  14. struct tm *localtime(const time_t*);
  15. time_t mktime(struct tm*);
  16.  
  17. #define CLOCKS_PER_SEC 50
  18. clock_t clock(void);
  19. double difftime(time_t, time_t);
  20.  
  21. int strftime(char *, unsigned, const char*, const struct tm*);
  22. char *asctime(const struct tm*);
  23. char *ctime(const time_t *);
  24.  
  25. #endif
  26.  
  27.