Date

constructor()(source)

Allocates a #GDate and initializes it to a safe state. The new date will be cleared (as if you'd called g_date_clear()) but invalid (it won't represent an existing day). Free the return value with g_date_free().

Return

a newly-allocated #GDate


constructor(day: <Error class: unknown class>, month: DateMonth, year: <Error class: unknown class>)(source)

Create a new #GDate representing the given day-month-year triplet.

The triplet you pass in must represent a valid date. Use g_date_valid_dmy() if needed to validate it. The returned #GDate is guaranteed to be non-null and valid.

Return

a newly-allocated #GDate initialized with @day, @month, and @year

Parameters

day

day of the month

month

month of the year

year

year


constructor(julianDay: <Error class: unknown class>)(source)

Create a new #GDate representing the given Julian date.

The @julian_day you pass in must be valid. Use g_date_valid_julian() if needed to validate it. The returned #GDate is guaranteed to be non-null and valid.

Return

a newly-allocated #GDate initialized with @julian_day

Parameters

julianDay

days since January 1, Year 1


constructor(glibDatePointer: <Error class: unknown class><<Error class: unknown class>>)(source)