home *** CD-ROM | disk | FTP | other *** search
- /*
- UNIX and Acorn time handlers : (C) Steven Haslam 1994
- */
-
- #ifndef __unixtime_h
- #define __unixtime_h
-
- /* Acorn time (barf) */
- typedef struct __TIME_str {
- char c[5];
- } TIME;
-
- /* UNIX time */
- typedef unsigned UNIXtime;
-
- /* Current UNIX time, UTC */
- extern UNIXtime utime (void);
-
- /* Convert Acorn<->Unix */
- extern UNIXtime unixify_acorntime (TIME);
- extern TIME acornify_unixtime (UNIXtime);
-
- /* TimeZone corrections use TerritoryManager */
- /* Correct Acorn time */
- extern TIME acorntime_tolocal (TIME*);
- extern TIME acorntime_toutc (TIME*);
-
- /* Correct UNIX time */
- extern time_t unixtime_tolocal (UNIXtime);
- extern UNIXtime unixtime_toutc (time_t);
-
- #endif
-