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 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. 20 If not, write to the Free Software Foundation, 21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 23 Report 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 35 struct tm *time2tm __MAKETIME_P((time_t,int)); 36 time_t difftm __MAKETIME_P((struct tm const *, struct tm const *)); 37 time_t str2time __MAKETIME_P((char const *, time_t, long)); 38 time_t tm2time __MAKETIME_P((struct tm *, int)); 39 void adjzone __MAKETIME_P((struct tm *, long)); 40