1 /* $MirOS: src/gnu/usr.bin/cvs/lib/getdate.h,v 1.5 2010/09/19 19:42:59 tg Exp $ */ 2 3 /* Parse a string into an internal time stamp. 4 5 Copyright (C) 1995, 1997, 1998, 2003, 2004, 2005 6 Free Software Foundation, Inc. 7 8 This program 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 This program 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 this program; if not, write to the Free Software Foundation, 20 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 21 22 #ifndef GETDATE_H 23 #define GETDATE_H 24 25 #if HAVE_CONFIG_H 26 # include <config.h> 27 #endif 28 29 #include <stdbool.h> 30 #ifndef IN_RCS 31 #include "timespec.h" 32 #else 33 #include <sys/time.h> 34 #include <time.h> 35 #define gettime(ts) clock_gettime(CLOCK_REALTIME,(ts)) 36 #endif 37 38 bool get_date (struct timespec *, char const *, struct timespec const *); 39 40 #endif /* GETDATE_H */ 41