Commit | Line | Data |
---|---|---|
d436bd52 RK |
1 | /* |
2 | * This file is part of DisOrder | |
3 | * Copyright (C) 2008 Richard Kettlewell | |
4 | * | |
e7eb3a27 | 5 | * This program is free software: you can redistribute it and/or modify |
d436bd52 | 6 | * it under the terms of the GNU General Public License as published by |
e7eb3a27 | 7 | * the Free Software Foundation, either version 3 of the License, or |
d436bd52 | 8 | * (at your option) any later version. |
e7eb3a27 RK |
9 | * |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
d436bd52 | 15 | * You should have received a copy of the GNU General Public License |
e7eb3a27 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
d436bd52 | 17 | */ |
d436bd52 RK |
18 | /** @file lib/dateparse.h |
19 | * @brief Date parsing | |
20 | */ | |
21 | ||
05b75f8d RK |
22 | #ifndef DATEPARSE_H |
23 | #define DATEPARSE_H | |
24 | ||
25 | #include <time.h> | |
26 | ||
d436bd52 | 27 | time_t dateparse(const char *s); |
835a5b33 | 28 | #if 0 |
d436bd52 RK |
29 | struct tm *xgetdate(const char *string, |
30 | const char *const *template); | |
835a5b33 | 31 | #endif |
d436bd52 RK |
32 | int xgetdate_r(const char *string, |
33 | struct tm *tp, | |
34 | const char *const *template); | |
35 | ||
05b75f8d RK |
36 | #endif /* DATEPARSE_H */ |
37 | ||
d436bd52 RK |
38 | /* |
39 | Local Variables: | |
40 | c-basic-offset:2 | |
41 | comment-column:40 | |
42 | fill-column:79 | |
43 | indent-tabs-mode:nil | |
44 | End: | |
45 | */ |