GLib Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct GDate { guint julian_days : 32; /* julian days representation - we use a * bitfield hoping that 64 bit platforms * will pack this whole struct in one big * int */ guint julian : 1; /* julian is valid */ guint dmy : 1; /* dmy is valid */ /* DMY representation */ guint day : 6; guint month : 4; guint year : 16; }; |
typedef enum { 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 } GDateMonth; |
typedef enum { 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 } GDateWeekday; |
guint8 g_date_days_in_month (GDateMonth month, GDateYear year); |
month : | |
year : | |
Returns : |
GDate* g_date_new_dmy (GDateDay day, GDateMonth month, GDateYear year); |
day : | |
month : | |
year : | |
Returns : |
void g_date_set_dmy (GDate *date, GDateDay day, GDateMonth month, GDateYear y); |
date : | |
day : | |
month : | |
y : |
gsize g_date_strftime (gchar *s, gsize slen, const gchar *format, GDate *date); |
s : | |
slen : | |
format : | |
date : | |
Returns : |
void g_date_subtract_months (GDate *date, guint n_months); |
date : | |
n_months : |
gboolean g_date_valid_dmy (GDateDay day, GDateMonth month, GDateYear year); |
day : | |
month : | |
year : | |
Returns : |