home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / demos / stormc-demo / include / time.h < prev    next >
C/C++ Source or Header  |  1996-01-02  |  761b  |  43 lines

  1. #ifndef _INCLUDE_TIME_H
  2. #define _INCLUDE_TIME_H
  3.  
  4. /*
  5. **  $VER: time.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  '(C) Copyright 1995/96 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. typedef unsigned time_t;
  17. typedef unsigned clock_t;
  18.  
  19. struct tm
  20. { int tm_sec, tm_min, tm_hour, tm_mday, tm_mon, tm_year,
  21.       tm_wday, tm_yday, tm_idst;
  22. };
  23.  
  24. time_t time(time_t*);
  25. struct tm *gmtime(const time_t*);
  26. struct tm *localtime(const time_t*);
  27. time_t mktime(struct tm*);
  28.  
  29. #define CLOCKS_PER_SEC 50
  30. clock_t clock(void);
  31. double difftime(time_t, time_t);
  32.  
  33. int strftime(char *, unsigned, const char*, const struct tm*);
  34. char *asctime(const struct tm*);
  35. char *ctime(const time_t *);
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif
  42.  
  43.