home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / TURBOC_1.LZH / INCLUDE / TIME.H < prev    next >
Text File  |  1990-03-02  |  2KB  |  59 lines

  1. /*      TIME.H
  2.  
  3.         ANSI Time functions
  4.  
  5.         Copyright (c) Borland International 1988
  6.         All Rights Reserved.
  7. */
  8.  
  9.  
  10. #if !defined( __TIME )
  11. #define    __TIME
  12.  
  13. #define     CLK_TCK 200
  14.  
  15. typedef     unsigned long size_t;
  16. typedef     long time_t;
  17. typedef     long clock_t;
  18.  
  19.  
  20. extern long timezone;
  21. extern int    daylight;
  22.  
  23.  
  24. struct tm
  25. {
  26.     int tm_sec;   /* seconds after the minute -- [0,  59] */
  27.     int tm_min;   /* minutes after the hour   -- [0,  59] */
  28.     int tm_hour;  /* hours since midnight     -- [0,  23] */
  29.     int tm_mday;  /* day of the month         -- [1,  31] */
  30.     int tm_mon;   /* months since January     -- [0,  11] */
  31.     int tm_year;  /* years since 1900         -- [      ] */
  32.     int tm_wday;  /* day since Sunday         -- [0,   6] */
  33.     int tm_yday;  /* day since January 1      -- [0, 365] */
  34.     int tm_isdst; /* daylight saving time flag            */
  35. };
  36.  
  37. char         *asctime( const struct tm *tblock );
  38. char         *ctime( const time_t *timer );
  39.  
  40. struct tm    *gmtime( const time_t *clock );
  41. struct tm    *localtime( const time_t *clock );
  42.  
  43. time_t       time( time_t *timer );
  44. time_t       mktime( struct tm *timeptr );
  45.  
  46. clock_t      clock( void );
  47.  
  48. size_t       strftime( char *s, size_t max_size, const char *format,
  49.                        const struct tm *timeptr );
  50.  
  51. double       difftime( time_t time2, time_t time1 );
  52.  
  53.  
  54. #endif
  55.  
  56.  
  57.  
  58. /***********************************************************************/
  59.