|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-gdate-utils.h -- utility functions for manipulating 00003 * GDate data structures from GLib 00004 * Copyright (C) 2005 David Hampton <hampton@employees.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, contact: 00018 * 00019 * Free Software Foundation Voice: +1-617-542-5942 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00021 * Boston, MA 02110-1301, USA gnu@gnu.org 00022 */ 00023 00038 #ifndef GNC_GDATE_UTILS_H 00039 #define GNC_GDATE_UTILS_H 00040 00041 00047 gint gnc_gdate_equal(gconstpointer gda, gconstpointer gdb); 00048 00049 00052 guint gnc_gdate_hash( gconstpointer gd ); 00053 00062 time_t gnc_timet_get_day_start_gdate (GDate *date); 00063 00067 time_t gnc_timet_get_day_end_gdate (GDate *date); 00068 00079 void gnc_gdate_set_month_start (GDate *date); 00080 00081 00087 void gnc_gdate_set_month_end (GDate *date); 00088 00089 00096 void gnc_gdate_set_prev_month_start (GDate *date); 00097 00098 00105 void gnc_gdate_set_prev_month_end (GDate *date); 00106 00107 00113 void gnc_gdate_set_quarter_start (GDate *date); 00114 00115 00121 void gnc_gdate_set_quarter_end (GDate *date); 00122 00123 00130 void gnc_gdate_set_prev_quarter_start (GDate *date); 00131 00132 00139 void gnc_gdate_set_prev_quarter_end (GDate *date); 00140 00141 00147 void gnc_gdate_set_year_start (GDate *date); 00148 00149 00155 void gnc_gdate_set_year_end (GDate *date); 00156 00157 00164 void gnc_gdate_set_prev_year_start (GDate *date); 00165 00166 00173 void gnc_gdate_set_prev_year_end (GDate *date); 00174 00175 00185 void gnc_gdate_set_fiscal_year_start (GDate *date, const GDate *year_end); 00186 00187 00197 void gnc_gdate_set_fiscal_year_end (GDate *date, const GDate *year_end); 00198 00199 00209 void gnc_gdate_set_prev_fiscal_year_start (GDate *date, const GDate *year_end); 00210 00211 00221 void gnc_gdate_set_prev_fiscal_year_end (GDate *date, const GDate *year_end); 00222 00225 #endif /* GNC_GDATE_UTILS_H */ 00226
1.7.4