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