GLib.Date
Represents a day between January 1, Year 1 and a few thousand years in the future. None of its members should be accessed directly.
If the GLib.Date-struct is obtained from GLib.Date.new, it will be safe to mutate but invalid and thus not safe for calendrical computations.
If it's declared on the stack, it will contain garbage so must be initialized with GLib.Date.prototype.clear. GLib.Date.prototype.clear makes the date invalid but sane. An invalid date doesn't represent a day, it's "empty." A date becomes valid after you set it to a Julian day or you set a day, month, and year.
Constructors
Methods
- GLib.Date.prototype.add_days
- GLib.Date.prototype.add_months
- GLib.Date.prototype.add_years
- GLib.Date.prototype.clamp
- GLib.Date.prototype.clear
- GLib.Date.prototype.compare
- GLib.Date.prototype.days_between
- GLib.Date.prototype.free
- GLib.Date.prototype.get_day
- GLib.Date.prototype.get_day_of_year
- GLib.Date.prototype.get_iso8601_week_of_year
- GLib.Date.prototype.get_julian
- GLib.Date.prototype.get_monday_week_of_year
- GLib.Date.prototype.get_month
- GLib.Date.prototype.get_sunday_week_of_year
- GLib.Date.prototype.get_weekday
- GLib.Date.prototype.get_year
- GLib.Date.prototype.is_first_of_month
- GLib.Date.prototype.is_last_of_month
- GLib.Date.prototype.order
- GLib.Date.prototype.set_day
- GLib.Date.prototype.set_dmy
- GLib.Date.prototype.set_julian
- GLib.Date.prototype.set_month
- GLib.Date.prototype.set_parse
- GLib.Date.prototype.set_time
- GLib.Date.prototype.set_time_t
- GLib.Date.prototype.set_time_val
- GLib.Date.prototype.set_year
- GLib.Date.prototype.subtract_days
- GLib.Date.prototype.subtract_months
- GLib.Date.prototype.subtract_years
- GLib.Date.prototype.to_struct_tm
- GLib.Date.prototype.valid