GnuCash  5.6-150-g038405b370+
gnc-date-p.h
1 /*
2  * gnc-date-p.h
3  *
4  * Copyright (C) 2007 Andreas Koehler <andi5.py@gmx.net>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
24 #ifndef __GNC_DATE_P_H__
25 #define __GNC_DATE_P_H__
26 
27 #include <stdint.h>
28 #include "gnc-date.h"
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
42 gchar *qof_time_format_from_utf8(const gchar *utf8_format);
43 
50 gchar *qof_formatted_time_to_utf8(const gchar *locale_string);
51 
52 
53 #ifdef G_OS_WIN32
54 
55 typedef enum
56 {
57  QOF_WIN32_PICTURE_DATE,
58  QOF_WIN32_PICTURE_TIME,
59  QOF_WIN32_PICTURE_DATETIME
60 } QofWin32Picture;
61 
70 const char *qof_win32_get_time_format(QofWin32Picture picture);
71 #endif /* G_OS_WIN32 */
72 
73 /* Test Access for static functions */
74 typedef struct
75 {
76  GTimeZone* (*timezone_new_local) (void);
77 } Testfuncs;
78 
79 Testfuncs *gnc_date_load_funcs (void);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 #endif /* __GNC_DATE_P_H__ */
Date and Time handling routines.