1/* $NetBSD: maketime.h,v 1.1.1.1 1996/10/13 21:57:10 veego 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 8This file is part of RCS. 9 10RCS is free software; you can redistribute it and/or modify 11it under the terms of the GNU General Public License as published by 12the Free Software Foundation; either version 2, or (at your option) 13any later version. 14 15RCS is distributed in the hope that it will be useful, 16but WITHOUT ANY WARRANTY; without even the implied warranty of 17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18GNU General Public License for more details. 19 20You should have received a copy of the GNU General Public License 21along with RCS; see the file COPYING. 22If not, write to the Free Software Foundation, 2359 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 25Report 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 37struct tm *time2tm __MAKETIME_P((time_t,int)); 38time_t difftm __MAKETIME_P((struct tm const *, struct tm const *)); 39time_t str2time __MAKETIME_P((char const *, time_t, long)); 40time_t tm2time __MAKETIME_P((struct tm *, int)); 41void adjzone __MAKETIME_P((struct tm *, long)); 42