|
Data Structures
|
struct |
_GDate |
Defines
|
#define |
G_DATE_BAD_JULIAN 0U
|
#define |
G_DATE_BAD_DAY 0U
|
#define |
G_DATE_BAD_YEAR 0U
|
#define |
g_date_weekday g_date_get_weekday
|
#define |
g_date_month g_date_get_month
|
#define |
g_date_year g_date_get_year
|
#define |
g_date_day g_date_get_day
|
#define |
g_date_julian g_date_get_julian
|
#define |
g_date_day_of_year g_date_get_day_of_year
|
#define |
g_date_monday_week_of_year g_date_get_monday_week_of_year
|
#define |
g_date_sunday_week_of_year g_date_get_sunday_week_of_year
|
#define |
g_date_days_in_month g_date_get_days_in_month
|
#define |
g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year
|
#define |
g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year
|
Typedefs
|
typedef guint16
|
GDateYear |
typedef guint8
|
GDateDay |
typedef _GDate
|
GDate |
Enumerations
|
enum |
GDateDMY { G_DATE_DAY = 0,
G_DATE_MONTH = 1,
G_DATE_YEAR = 2
}
|
enum |
GDateWeekday {
G_DATE_BAD_WEEKDAY = 0,
G_DATE_MONDAY = 1,
G_DATE_TUESDAY = 2,
G_DATE_WEDNESDAY = 3,
G_DATE_THURSDAY = 4,
G_DATE_FRIDAY = 5,
G_DATE_SATURDAY = 6,
G_DATE_SUNDAY = 7
}
|
enum |
GDateMonth {
G_DATE_BAD_MONTH = 0,
G_DATE_JANUARY = 1,
G_DATE_FEBRUARY = 2,
G_DATE_MARCH = 3,
G_DATE_APRIL = 4,
G_DATE_MAY = 5,
G_DATE_JUNE = 6,
G_DATE_JULY = 7,
G_DATE_AUGUST = 8,
G_DATE_SEPTEMBER = 9,
G_DATE_OCTOBER = 10,
G_DATE_NOVEMBER = 11,
G_DATE_DECEMBER = 12
}
|
Functions
|
IMPORT_C GDate *
|
g_date_new (void)
|
IMPORT_C GDate *
|
g_date_new_dmy (GDateDay day, GDateMonth month, GDateYear year)
|
IMPORT_C GDate *
|
g_date_new_julian (guint32 julian_day)
|
IMPORT_C void |
g_date_free (GDate *date)
|
IMPORT_C gboolean
|
g_date_valid (const GDate *date)
|
IMPORT_C gboolean
|
g_date_valid_day (GDateDay day) G_GNUC_CONST
|
IMPORT_C gboolean
|
g_date_valid_month (GDateMonth month) G_GNUC_CONST
|
IMPORT_C gboolean
|
g_date_valid_year (GDateYear year) G_GNUC_CONST
|
IMPORT_C gboolean
|
g_date_valid_weekday (GDateWeekday weekday) G_GNUC_CONST
|
IMPORT_C gboolean
|
g_date_valid_julian (guint32 julian_date) G_GNUC_CONST
|
IMPORT_C gboolean
|
g_date_valid_dmy (GDateDay day, GDateMonth month, GDateYear year) G_GNUC_CONST
|
IMPORT_C GDateWeekday
|
g_date_get_weekday (const GDate *date)
|
IMPORT_C GDateMonth
|
g_date_get_month (const GDate *date)
|
IMPORT_C GDateYear
|
g_date_get_year (const GDate *date)
|
IMPORT_C GDateDay
|
g_date_get_day (const GDate *date)
|
IMPORT_C guint32
|
g_date_get_julian (const GDate *date)
|
IMPORT_C guint
|
g_date_get_day_of_year (const GDate *date)
|
IMPORT_C guint
|
g_date_get_monday_week_of_year (const GDate *date)
|
IMPORT_C guint
|
g_date_get_sunday_week_of_year (const GDate *date)
|
IMPORT_C guint
|
g_date_get_iso8601_week_of_year (const GDate *date)
|
IMPORT_C void |
g_date_clear (GDate *date, guint n_dates)
|
IMPORT_C void |
g_date_set_parse (GDate *date, const gchar *str)
|
IMPORT_C void |
g_date_set_time (GDate *date, time_t timet)
|
IMPORT_C void |
g_date_set_time_val (GDate *date, GTimeVal *timeval)
|
IMPORT_C void |
g_date_set_time (GDate *date, GTime time_)
|
IMPORT_C void |
g_date_set_month (GDate *date, GDateMonth month)
|
IMPORT_C void |
g_date_set_day (GDate *date, GDateDay day)
|
IMPORT_C void |
g_date_set_year (GDate *date, GDateYear year)
|
IMPORT_C void |
g_date_set_dmy (GDate *date, GDateDay day, GDateMonth month, GDateYear y)
|
IMPORT_C void |
g_date_set_julian (GDate *date, guint32 julian_date)
|
IMPORT_C gboolean
|
g_date_is_first_of_month (const GDate *date)
|
IMPORT_C gboolean
|
g_date_is_last_of_month (const GDate *date)
|
IMPORT_C void |
g_date_add_days (GDate *date, guint n_days)
|
IMPORT_C void |
g_date_subtract_days (GDate *date, guint n_days)
|
IMPORT_C void |
g_date_add_months (GDate *date, guint n_months)
|
IMPORT_C void |
g_date_subtract_months (GDate *date, guint n_months)
|
IMPORT_C void |
g_date_add_years (GDate *date, guint n_years)
|
IMPORT_C void |
g_date_subtract_years (GDate *date, guint n_years)
|
IMPORT_C gboolean
|
g_date_is_leap_year (GDateYear year) G_GNUC_CONST
|
IMPORT_C guint8
|
g_date_get_days_in_month (GDateMonth month, GDateYear year) G_GNUC_CONST
|
IMPORT_C guint8
|
g_date_get_monday_weeks_in_year (GDateYear year) G_GNUC_CONST
|
IMPORT_C guint8
|
g_date_get_sunday_weeks_in_year (GDateYear year) G_GNUC_CONST
|
IMPORT_C gint
|
g_date_days_between (const GDate *date1, const GDate *date2)
|
IMPORT_C gint
|
g_date_compare (const GDate *lhs, const GDate *rhs)
|
IMPORT_C void |
g_date_to_struct_tm (const GDate *date, struct tm *tm)
|
IMPORT_C void |
g_date_clamp (GDate *date, const GDate *min_date, const GDate *max_date)
|
IMPORT_C void |
g_date_order (GDate *date1, GDate *date2)
|
IMPORT_C gsize
|
g_date_strftime (gchar *s, gsize slen, const gchar *format, const GDate *date)
|
Variables
|
G_BEGIN_DECLS typedef gint32
|
GTime |