maketime.h 1.3 KB

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