29 #ifndef GNC_DATE_FORMAT_H 30 #define GNC_DATE_FORMAT_H 38 #define GNC_TYPE_DATE_FORMAT (gnc_date_format_get_type ()) 39 G_DECLARE_FINAL_TYPE (GNCDateFormat, gnc_date_format, GNC, DATE_FORMAT, GtkBox)
41 GtkWidget *gnc_date_format_new (
void);
42 GtkWidget *gnc_date_format_new_without_label (
void);
43 GtkWidget *gnc_date_format_new_with_label (
const char *label);
45 void gnc_date_format_set_format (GNCDateFormat *gdf,
QofDateFormat format);
46 QofDateFormat gnc_date_format_get_format (GNCDateFormat *gdf);
48 void gnc_date_format_set_months (GNCDateFormat *gdf,
52 void gnc_date_format_set_years (GNCDateFormat *gdf,
53 gboolean include_century);
54 gboolean gnc_date_format_get_years (GNCDateFormat *gdf);
56 void gnc_date_format_set_custom (GNCDateFormat *gdf,
const char *format);
57 const char* gnc_date_format_get_custom (GNCDateFormat *gdf);
59 void gnc_date_format_refresh (GNCDateFormat *gdf);
GNCDateMonthFormat
This is how to format the month, as a number, an abbreviated string, or the full name.
QofDateFormat
Enum for determining a date format.