GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-jalali.h
1 /*
2  * jalali.h
3  * Copyright (C) 2010 Christian Stimming
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
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  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, contact:
17  *
18  * Free Software Foundation Voice: +1-617-542-5942
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
20  * Boston, MA 02110-1301, USA [email protected]
21  */
22 
23 #ifndef GNC_JALALI_H
24 #define GNC_JALALI_H
25 
28 void gnc_gregorian_to_jalali(/* output */ int *j_y, int *j_m, int *j_d,
29  /* input */ int g_y, int g_m, int g_d);
30 
33 void gnc_jalali_to_gregorian(/* output */ int *g_y, int *g_m, int *g_d,
34  /* input */ int j_y, int j_m, int j_d);
35 
39 int gnc_jalali_days_in_month(int month_index);
40 
43 const char* gnc_jalali_month_name(int month_index);
44 
45 
46 #endif