Date
Object Hierarchy:
Description:
[ CCode ( type_id = "G_TYPE_DATE" ) ]
public struct Date
public struct Date
Namespace: GLib
Package: glib-2.0
Content:
Static methods:
- public static uchar get_days_in_month (DateMonth month, DateYear year)
- public static bool valid_day (DateDay day)
- public static bool valid_dmy (DateDay day, DateMonth month, DateYear year)
- public static bool valid_julian (uint julian_date)
- public static bool valid_weekday (DateWeekday weekday)
Methods:
- public void add_days (uint n_days)
- public void add_months (uint n_months)
- public void add_years (uint n_years)
- public void clamp (Date min_date, Date max_date)
- public void clear (uint n_dates = 1)
- public int compare (Date rhs)
- public Date copy ()
- public int days_between (Date date2)
- public DateDay get_day ()
- public uint get_day_of_year ()
- public uint get_iso8601_week_of_year ()
- public uint get_julian ()
- public uint get_monday_week_of_year ()
- public DateMonth get_month ()
- public uint get_sunday_week_of_year ()
- public DateWeekday get_weekday ()
- public DateYear get_year ()
- public bool is_first_of_month ()
- public bool is_last_of_month ()
- public void order (Date date2)
- public void set_day (DateDay day)
- public void set_dmy (DateDay day, int month, DateYear y)
- public void set_julian (uint julian_day)
- public void set_month (DateMonth month)
- public void set_parse (string str)
- public void set_time_t (time_t timet)
- public void set_time_val (TimeVal timeval)
- public void set_year (DateYear year)
- public size_t strftime (char[] s, string format)
- public void subtract_days (uint n_days)
- public void subtract_months (uint n_months)
- public void subtract_years (uint n_years)
- public void to_time (out Time tm)
- public bool valid ()