home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / HITECH-C / Z8051H83.EXE / TIME.H < prev    next >
C/C++ Source or Header  |  1993-05-21  |  838b  |  29 lines

  1. #ifndef    _TIME
  2.  
  3. typedef    long    time_t;        /* for representing times in seconds */
  4. struct tm {
  5.     int    tm_sec;
  6.     int    tm_min;
  7.     int    tm_hour;
  8.     int    tm_mday;
  9.     int    tm_mon;
  10.     int    tm_year;
  11.     int    tm_wday;
  12.     int    tm_yday;
  13.     int    tm_isdst;
  14. };
  15. #define    _TIME
  16. #endif    _TIME
  17.  
  18. extern int    time_zone;    /* minutes WESTWARD of Greenwich */
  19.                 /* this value defaults to 0 since with
  20.                    operating systems like MS-DOS there is
  21.                    no time zone information available */
  22.  
  23. extern time_t    time(time_t *);    /* seconds since 00:00:00 Jan 1 1970 */
  24. extern int    stime(time_t *);    /* set time */
  25. extern char *    asctime(struct tm *);    /* converts struct tm to ascii time */
  26. extern char *    ctime(time_t *);    /* current local time in ascii form */
  27. extern struct tm *    gmtime(time_t *);    /* Universal time */
  28. extern struct tm *    localtime(time_t *);    /* local time */
  29.