home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / assembler / armmaker / !ARMmaker / h / unixtime < prev   
Encoding:
Text File  |  1994-08-13  |  684 b   |  33 lines

  1. /*
  2.    UNIX and Acorn time handlers : (C) Steven Haslam 1994
  3. */
  4.  
  5. #ifndef __unixtime_h
  6. #define __unixtime_h
  7.  
  8. /* Acorn time (barf) */
  9. typedef struct __TIME_str {
  10.    char  c[5];
  11. } TIME;
  12.  
  13. /* UNIX time */
  14. typedef unsigned UNIXtime;
  15.  
  16. /* Current UNIX time, UTC */
  17. extern   UNIXtime utime (void);
  18.  
  19. /* Convert Acorn<->Unix */
  20. extern   UNIXtime unixify_acorntime (TIME);
  21. extern   TIME  acornify_unixtime (UNIXtime);
  22.  
  23. /* TimeZone corrections use TerritoryManager */
  24. /* Correct Acorn time */
  25. extern   TIME  acorntime_tolocal (TIME*);
  26. extern   TIME  acorntime_toutc (TIME*);
  27.  
  28. /* Correct UNIX time */
  29. extern   time_t   unixtime_tolocal (UNIXtime);
  30. extern   UNIXtime unixtime_toutc (time_t);
  31.  
  32. #endif
  33.