gdate.h File Reference

__G_DATE_H__

GTime

G_BEGIN_DECLS typedef gint32GTime

Typedef GDateYear

typedef guint16 GDateYear

Typedef GDateDay

typedef guint8 GDateDay

Typedef GDate

typedef struct _GDateGDate

Enum GDateDMY

EnumeratorValueDescription
G_DATE_DAY0
G_DATE_MONTH1
G_DATE_YEAR2

Enum GDateWeekday

Enum GDateMonth

G_DATE_BAD_JULIAN

G_DATE_BAD_DAY

G_DATE_BAD_YEAR

g_date_new ( void )

IMPORT_C GDate *g_date_new(void)

g_date_new_dmy ( GDateDay, GDateMonth, GDateYear )

IMPORT_C GDate *g_date_new_dmy(GDateDayday,
GDateMonthmonth,
GDateYearyear
)

g_date_new_julian ( guint32 )

IMPORT_C GDate *g_date_new_julian(guint32julian_day)

g_date_free ( GDate * )

IMPORT_C voidg_date_free(GDate *date)

g_date_valid ( const GDate * )

IMPORT_C gbooleang_date_valid(const GDate *date)

g_date_valid_day ( GDateDay )

IMPORT_C gbooleang_date_valid_day(GDateDayday)

g_date_valid_month ( GDateMonth )

IMPORT_C gbooleang_date_valid_month(GDateMonthmonth)

g_date_valid_year ( GDateYear )

IMPORT_C gbooleang_date_valid_year(GDateYearyear)

g_date_valid_weekday ( GDateWeekday )

IMPORT_C gbooleang_date_valid_weekday(GDateWeekdayweekday)

g_date_valid_julian ( guint32 )

IMPORT_C gbooleang_date_valid_julian(guint32julian_date)

g_date_valid_dmy ( GDateDay, GDateMonth, GDateYear )

IMPORT_C gbooleang_date_valid_dmy(GDateDayday,
GDateMonthmonth,
GDateYearyear
)

g_date_get_weekday ( const GDate * )

IMPORT_C GDateWeekdayg_date_get_weekday(const GDate *date)

g_date_get_month ( const GDate * )

IMPORT_C GDateMonthg_date_get_month(const GDate *date)

g_date_get_year ( const GDate * )

IMPORT_C GDateYearg_date_get_year(const GDate *date)

g_date_get_day ( const GDate * )

IMPORT_C GDateDayg_date_get_day(const GDate *date)

g_date_get_julian ( const GDate * )

IMPORT_C guint32g_date_get_julian(const GDate *date)

g_date_get_day_of_year ( const GDate * )

IMPORT_C guintg_date_get_day_of_year(const GDate *date)

g_date_get_monday_week_of_year ( const GDate * )

IMPORT_C guintg_date_get_monday_week_of_year(const GDate *date)

g_date_get_sunday_week_of_year ( const GDate * )

IMPORT_C guintg_date_get_sunday_week_of_year(const GDate *date)

g_date_get_iso8601_week_of_year ( const GDate * )

IMPORT_C guintg_date_get_iso8601_week_of_year(const GDate *date)
g_date_get_iso8601_week_of_year:
Date
: a valid GDate
Returns the week of the year, where weeks are interpreted according to ISO 8601.

Returns: ISO 8601 week number of the year.

Since: 2.6

g_date_clear ( GDate *, guint )

IMPORT_C voidg_date_clear(GDate *date,
guintn_dates
)

g_date_set_parse ( GDate *, const gchar * )

IMPORT_C voidg_date_set_parse(GDate *date,
const gchar *str
)

g_date_set_time ( GDate *, time_t )

IMPORT_C voidg_date_set_time(GDate *date,
time_ttimet
)

g_date_set_time_val ( GDate *, GTimeVal * )

IMPORT_C voidg_date_set_time_val(GDate *date,
GTimeVal *timeval
)
g_date_set_time_val:
Date
: a GDate : GTimeVal value to set
Sets the value of a date from a GTimeVal value. Note that the member is ignored, because GDate can't make use of the additional precision.

Since: 2.10

g_date_set_time ( GDate *, GTime )

IMPORT_C voidg_date_set_time(GDate *date,
GTimetime_
)
g_date_set_time:
Date
: a GDate. : GTime value to set.
Sets the value of a date from a GTime value. The time to date conversion is done using the user's current timezone.

:2.10: Use g_date_set_time_t() instead.

g_date_set_month ( GDate *, GDateMonth )

IMPORT_C voidg_date_set_month(GDate *date,
GDateMonthmonth
)

g_date_set_day ( GDate *, GDateDay )

IMPORT_C voidg_date_set_day(GDate *date,
GDateDayday
)

g_date_set_year ( GDate *, GDateYear )

IMPORT_C voidg_date_set_year(GDate *date,
GDateYearyear
)

g_date_set_dmy ( GDate *, GDateDay, GDateMonth, GDateYear )

IMPORT_C voidg_date_set_dmy(GDate *date,
GDateDayday,
GDateMonthmonth,
GDateYeary
)

g_date_set_julian ( GDate *, guint32 )

IMPORT_C voidg_date_set_julian(GDate *date,
guint32julian_date
)

g_date_is_first_of_month ( const GDate * )

IMPORT_C gbooleang_date_is_first_of_month(const GDate *date)

g_date_is_last_of_month ( const GDate * )

IMPORT_C gbooleang_date_is_last_of_month(const GDate *date)

g_date_add_days ( GDate *, guint )

IMPORT_C voidg_date_add_days(GDate *date,
guintn_days
)

g_date_subtract_days ( GDate *, guint )

IMPORT_C voidg_date_subtract_days(GDate *date,
guintn_days
)

g_date_add_months ( GDate *, guint )

IMPORT_C voidg_date_add_months(GDate *date,
guintn_months
)

g_date_subtract_months ( GDate *, guint )

IMPORT_C voidg_date_subtract_months(GDate *date,
guintn_months
)

g_date_add_years ( GDate *, guint )

IMPORT_C voidg_date_add_years(GDate *date,
guintn_years
)

g_date_subtract_years ( GDate *, guint )

IMPORT_C voidg_date_subtract_years(GDate *date,
guintn_years
)

g_date_is_leap_year ( GDateYear )

IMPORT_C gbooleang_date_is_leap_year(GDateYearyear)

g_date_get_days_in_month ( GDateMonth, GDateYear )

IMPORT_C guint8g_date_get_days_in_month(GDateMonthmonth,
GDateYearyear
)

g_date_get_monday_weeks_in_year ( GDateYear )

IMPORT_C guint8g_date_get_monday_weeks_in_year(GDateYearyear)

g_date_get_sunday_weeks_in_year ( GDateYear )

IMPORT_C guint8g_date_get_sunday_weeks_in_year(GDateYearyear)

g_date_days_between ( const GDate *, const GDate * )

IMPORT_C gintg_date_days_between(const GDate *date1,
const GDate *date2
)

g_date_compare ( const GDate *, const GDate * )

IMPORT_C gintg_date_compare(const GDate *lhs,
const GDate *rhs
)

g_date_to_struct_tm ( const GDate *, struct tm * )

IMPORT_C voidg_date_to_struct_tm(const GDate *date,
struct tm *tm
)

g_date_clamp ( GDate *, const GDate *, const GDate * )

IMPORT_C voidg_date_clamp(GDate *date,
const GDate *min_date,
const GDate *max_date
)

g_date_order ( GDate *, GDate * )

IMPORT_C voidg_date_order(GDate *date1,
GDate *date2
)

g_date_strftime ( gchar *, gsize, const gchar *, const GDate * )

IMPORT_C gsizeg_date_strftime(gchar *s,
gsizeslen,
const gchar *format,
const GDate *date
)

g_date_weekday

g_date_month

g_date_year

g_date_day

g_date_julian

g_date_day_of_year

g_date_monday_week_of_year

g_date_sunday_week_of_year

g_date_days_in_month

g_date_monday_weeks_in_year

g_date_sunday_weeks_in_year