GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-gdate-utils.h
Go to the documentation of this file.
1 /*
2  * gnc-gdate-utils.h -- utility functions for manipulating
3  * GDate data structures from GLib
4  * Copyright (C) 2005 David Hampton <[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 
38 #ifndef GNC_GDATE_UTILS_H
39 #define GNC_GDATE_UTILS_H
40 
41 #include <gnc-date.h>
42 
48 void gnc_gdate_set_today (GDate* gd);
49 
54 void gnc_gdate_set_time64 (GDate* gd, time64 time);
55 
63 gint gnc_gdate_equal(gconstpointer gda, gconstpointer gdb);
64 
65 
68 guint gnc_gdate_hash( gconstpointer gd );
69 
78 time64 gnc_time64_get_day_start_gdate (const GDate *date);
79 
83 time64 gnc_time64_get_day_end_gdate (const GDate *date);
84 
95 void gnc_gdate_set_month_start (GDate *date);
96 
97 
103 void gnc_gdate_set_month_end (GDate *date);
104 
105 
112 void gnc_gdate_set_prev_month_start (GDate *date);
113 
114 
121 void gnc_gdate_set_prev_month_end (GDate *date);
122 
123 
129 void gnc_gdate_set_quarter_start (GDate *date);
130 
131 
137 void gnc_gdate_set_quarter_end (GDate *date);
138 
139 
146 void gnc_gdate_set_prev_quarter_start (GDate *date);
147 
148 
155 void gnc_gdate_set_prev_quarter_end (GDate *date);
156 
157 
163 void gnc_gdate_set_year_start (GDate *date);
164 
165 
171 void gnc_gdate_set_year_end (GDate *date);
172 
173 
180 void gnc_gdate_set_prev_year_start (GDate *date);
181 
182 
189 void gnc_gdate_set_prev_year_end (GDate *date);
190 
191 
201 void gnc_gdate_set_fiscal_year_start (GDate *date, const GDate *year_end);
202 
203 
213 void gnc_gdate_set_fiscal_year_end (GDate *date, const GDate *year_end);
214 
215 
225 void gnc_gdate_set_prev_fiscal_year_start (GDate *date, const GDate *year_end);
226 
227 
237 void gnc_gdate_set_prev_fiscal_year_end (GDate *date, const GDate *year_end);
238 
241 #endif /* GNC_GDATE_UTILS_H */
242 
void gnc_gdate_set_today(GDate *gd)
void gnc_gdate_set_prev_quarter_start(GDate *date)
void gnc_gdate_set_prev_fiscal_year_end(GDate *date, const GDate *year_end)
Date and Time handling routines.
void gnc_gdate_set_month_end(GDate *date)
time64 gnc_time64_get_day_start_gdate(const GDate *date)
void gnc_gdate_set_prev_year_end(GDate *date)
time64 gnc_time64_get_day_end_gdate(const GDate *date)
guint gnc_gdate_hash(gconstpointer gd)
void gnc_gdate_set_prev_quarter_end(GDate *date)
void gnc_gdate_set_month_start(GDate *date)
gint gnc_gdate_equal(gconstpointer gda, gconstpointer gdb)
void gnc_gdate_set_quarter_end(GDate *date)
void gnc_gdate_set_quarter_start(GDate *date)
void gnc_gdate_set_prev_year_start(GDate *date)
void gnc_gdate_set_fiscal_year_start(GDate *date, const GDate *year_end)
void gnc_gdate_set_year_start(GDate *date)
gint64 time64
Definition: gnc-date.h:83
void gnc_gdate_set_year_end(GDate *date)
void gnc_gdate_set_prev_month_end(GDate *date)
void gnc_gdate_set_prev_month_start(GDate *date)
void gnc_gdate_set_time64(GDate *gd, time64 time)
void gnc_gdate_set_fiscal_year_end(GDate *date, const GDate *year_end)
void gnc_gdate_set_prev_fiscal_year_start(GDate *date, const GDate *year_end)