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