home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c329 / 2.img / INCL_A / TIME.H < prev   
Encoding:
C/C++ Source or Header  |  1990-01-17  |  1.7 KB  |  51 lines

  1. /*  time.h
  2.  *  ANSI C Runtime Library
  3.  */
  4.  
  5. #ifndef _STDDEF_H
  6. #  include <stddef.h>
  7. #endif  /* _STDDEF_H */
  8.  
  9. #ifndef _TIME_H
  10. #define _TIME_H
  11.  
  12. #define CLK_TCK     60
  13.  
  14. #define _TZ_UNKNOWN (-1)
  15.  
  16. typedef long clock_t;       /* said to be an arithmetric type, so can't be too accurate */
  17. /*typedef unsigned int time_t;/* said to be an arithmetric type, so can't be too accurate */
  18. typedef long time_t;        /* PLUM HALL requires that this be signed. */ 
  19. struct tm {
  20.     int tm_sec;             /* seconds of the minute, [0,59] */
  21.     int tm_min;             /* minutes of the hour, [0,59] */
  22.     int tm_hour;            /* hour of the day, [0,23] */
  23.     int tm_mday;            /* day of the month, [1,31] */
  24.     int tm_mon;             /* months since Jan, [0,11] */
  25.     int tm_year;            /* years since 1900 */
  26.     int tm_wday;            /* days since Sun, [0,6] */
  27.     int tm_yday;            /* days since Jan 1, [0,365] */
  28.     int tm_isdst;           /* daylight savings time */
  29. };
  30.  
  31. clock_t clock(void);
  32. double difftime(time_t time1, time_t time0);
  33. #define difftime(t1,t0) ((double) ((t1)-(t0)))
  34. time_t mktime(struct tm *timeptr);
  35. time_t time(time_t *timer);
  36.  
  37. char *asctime(const struct tm *timeptr);
  38. char *ctime(const time_t *timer);
  39. struct tm *gmtime(const time_t *timer);
  40. struct tm *localtime(const time_t *timer);
  41. size_t strftime(char *s, size_t maxsize, const char *format,
  42.     const struct tm *timeptr);
  43.  
  44. void    date_ (char * s);
  45. void    idate_ (int * month, int * day, int * year);
  46. void    secnds_ (int * lasttime);
  47. void    sec_100_ ();
  48. void    timedate (int * year, int * month, int * day, \
  49.         int * minute, int * second, int * hundredth);
  50. #endif
  51.