Companion

object Companion : RecordCompanion<Date, <Error class: unknown class>>

Functions

Link copied to clipboard
fun new(): Date

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().

Link copied to clipboard
fun newJulian(julianDay: <Error class: unknown class>): Date

Create a new #GDate representing the given Julian date.

Link copied to clipboard
fun validJulian(julianDate: <Error class: unknown class>): Boolean

Returns true if the Julian day is valid. Anything greater than zero is basically a valid Julian, though there is a 32-bit limit.

Link copied to clipboard

Returns true if the month value is valid. The 12 #GDateMonth enumeration values are the only valid months.

Link copied to clipboard

Returns true if the weekday is valid. The seven #GDateWeekday enumeration values are the only valid weekdays.

Link copied to clipboard
open override fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): Date

Wrap a CPointer pointing to a record of this type into its wrapper class.