00001 /* Parse a string into an internal time stamp. 00002 00003 Copyright (C) 1995, 1997, 1998, 2003 Free Software Foundation, Inc. 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2, or (at your option) 00008 any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software Foundation, 00017 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 00018 00019 #if HAVE_CONFIG_H 00020 # include <config.h> 00021 #endif 00022 00023 #ifdef vms 00024 # include <types.h> 00025 # include <time.h> 00026 #else 00027 # include <sys/types.h> 00028 # if TIME_WITH_SYS_TIME 00029 # include <sys/time.h> 00030 # include <time.h> 00031 # else 00032 # if HAVE_SYS_TIME_H 00033 # include <sys/time.h> 00034 # else 00035 # include <time.h> 00036 # endif 00037 # endif 00038 #endif /* defined (vms) */ 00039 00040 time_t get_date (const char *p, const time_t *now);