home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / emacs-19.28-src.tgz / tar.out / fsf / emacs / unixlib / src / timeconvert.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  818b  |  28 lines

  1. #ifndef TIMECONVERT_H
  2. #define TIMECONVERT_H
  3.  
  4. #include <time.h>
  5.  
  6. int _gettime(struct timeval *tp);
  7. /* Effect: Store GMT time into tp.
  8.      If USE_LOCAL is defined, assume system stores local time,
  9.      otherwise it stores GMT.
  10. */
  11.  
  12. void _gmt2amiga(time_t time, struct DateStamp *date);
  13. /* Effect: Converts a time expressed in seconds since
  14.      the 1 January 1970 0:00:00 GMT, to an Amiga time.
  15.      If USE_LOCAL is defined, Amiga time is assumed to
  16.      be stored as local time, otherwise as GMT.
  17.    Modifies: date, to contain the time in Amiga format
  18. */
  19.  
  20. time_t _amiga2gmt(struct DateStamp *date);
  21. /* Effect: Convert a date expressed in Amiga format (as a 
  22.      local time if USE_LOCAL is defined, as GMT otherwise)
  23.      to a number of seconds since 1 January 1970 0:00:00 GMT.
  24.    Returns: this latter time
  25. */
  26.  
  27. #endif
  28.