G_BEGIN_DECLS typedef gint32 | GTime |
typedef guint16 | GDateYear |
typedef guint8 | GDateDay |
typedef struct _GDate | GDate |
Enumerator | Value | Description |
---|---|---|
G_DATE_DAY | 0 | |
G_DATE_MONTH | 1 | |
G_DATE_YEAR | 2 |
Enumerator | Value | Description |
---|---|---|
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 |
Enumerator | Value | Description |
---|---|---|
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 |
IMPORT_C GDate * | g_date_new | ( | void | ) |
IMPORT_C GDate * | g_date_new_dmy | ( | GDateDay | day, |
GDateMonth | month, | |||
GDateYear | year | |||
) |
IMPORT_C void | g_date_free | ( | GDate * | date | ) |
IMPORT_C gboolean | g_date_valid_month | ( | GDateMonth | month | ) |
IMPORT_C gboolean | g_date_valid_weekday | ( | GDateWeekday | weekday | ) |
IMPORT_C gboolean | g_date_valid_dmy | ( | GDateDay | day, |
GDateMonth | month, | |||
GDateYear | year | |||
) |
IMPORT_C GDateWeekday | g_date_get_weekday | ( | const GDate * | date | ) |
IMPORT_C GDateMonth | g_date_get_month | ( | const GDate * | date | ) |
Returns: ISO 8601 week number of the year.
Since: 2.6
Since: 2.10
:2.10: Use g_date_set_time_t() instead.
IMPORT_C void | g_date_set_month | ( | GDate * | date, |
GDateMonth | month | |||
) |
IMPORT_C void | g_date_set_dmy | ( | GDate * | date, |
GDateDay | day, | |||
GDateMonth | month, | |||
GDateYear | y | |||
) |
IMPORT_C guint8 | g_date_get_days_in_month | ( | GDateMonth | month, |
GDateYear | year | |||
) |