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