gwenhywfar  4.12.0beta
gwendate.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Tue Jul 07 2009
3  copyright : (C) 2009 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Lesser General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2.1 of the License, or (at your option) any later version. *
12  * *
13  * This library 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 GNU *
16  * Lesser General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU Lesser General Public *
19  * License along with this library; if not, write to the Free Software *
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21  * MA 02111-1307 USA *
22  * *
23  ***************************************************************************/
24 
25 #ifndef GWEN_DATE_H
26 #define GWEN_DATE_H
27 
28 
30 #include <gwenhywfar/types.h>
31 #include <gwenhywfar/buffer.h>
32 
33 
34 typedef struct GWEN_DATE GWEN_DATE;
35 
36 
37 #include <gwenhywfar/gwentime.h>
38 
39 #include <time.h>
40 
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 
47 
48 
56 
62 
67 
69 
71 
73 
76 
77 
78 GWENHYWFAR_API GWEN_DATE *GWEN_Date_fromStringWithTemplate(const char *s, const char *tmpl);
80  const char *tmpl,
81  GWEN_BUFFER *buf);
82 
83 
88 
89 
90 
91 GWENHYWFAR_API const char *GWEN_Date_GetString(const GWEN_DATE *gd);
92 
93 
95 
101 
107 
108 
110 GWENHYWFAR_API int GWEN_Date_Compare(const GWEN_DATE *gd1, const GWEN_DATE *gd0);
111 GWENHYWFAR_API int GWEN_Date_Diff(const GWEN_DATE *gd1, const GWEN_DATE *gd0);
112 
113 
116 
117 
120 
123 
126 
129 
132 
135 
138 
141 
142 
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 
149 
150 #endif
151 
152