GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-date-p.h
1 /*
2  * gnc-date-p.h
3  *
4  * Copyright (C) 2007 Andreas Koehler <[email protected]>
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 [email protected]
22  */
23 
24 #ifndef __GNC_DATE_P_H__
25 #define __GNC_DATE_P_H__
26 
27 #include "gnc-date.h"
28 
29 #define NANOS_PER_SECOND 1000000000
30 
38 gchar *qof_time_format_from_utf8(const gchar *utf8_format);
39 
46 gchar *qof_formatted_time_to_utf8(const gchar *locale_string);
47 
48 
49 #ifdef G_OS_WIN32
50 
51 typedef enum
52 {
53  QOF_WIN32_PICTURE_DATE,
54  QOF_WIN32_PICTURE_TIME,
55  QOF_WIN32_PICTURE_DATETIME
56 } QofWin32Picture;
57 
66 const char *qof_win32_get_time_format(QofWin32Picture picture);
67 #endif /* G_OS_WIN32 */
68 
69 /* Test Access for static functions */
70 typedef struct
71 {
72  void (*timespec_normalize) (Timespec *t);
73 } Testfuncs;
74 
75 Testfuncs *gnc_date_load_funcs (void);
76 
77 #endif /* __GNC_DATE_P_H__ */
Date and Time handling routines.
Use a 64-bit unsigned int timespec.
Definition: gnc-date.h:299