home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / rcs567s.zip / rcs / src / maketime.h < prev    next >
C/C++ Source or Header  |  1993-11-09  |  1KB  |  43 lines

  1. /* Yield time_t from struct partime yielded by partime.  */
  2.  
  3. /* Copyright 1993 Paul Eggert
  4.    Distributed under license by the Free Software Foundation, Inc.
  5.  
  6. This file is part of RCS.
  7.  
  8. RCS is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12.  
  13. RCS is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with RCS; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. Report problems and direct all questions to:
  23.  
  24.     rcs-bugs@cs.purdue.edu
  25.  
  26. */
  27.  
  28. #if defined(__STDC__) || has_prototypes
  29. #    define __MAKETIME_P(x) x
  30. #else
  31. #    define __MAKETIME_P(x) ()
  32. #endif
  33.  
  34. #ifndef __STDC__
  35. #    define const
  36. #endif
  37.  
  38. struct tm *time2tm __MAKETIME_P((time_t,int));
  39. time_t difftm __MAKETIME_P((struct tm const*, struct tm const*));
  40. time_t str2time __MAKETIME_P((char const *, time_t, int));
  41. time_t tm2time __MAKETIME_P((struct tm*, int));
  42. void adjzone __MAKETIME_P((struct tm*, int));
  43.