Companion

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

Functions

Link copied to clipboard
fun new(tz: TimeZone, year: Int, month: Int, day: Int, hour: Int, minute: Int, seconds: Double): DateTime?

Creates a new #GDateTime corresponding to the given date and time in the time zone @tz.

Link copied to clipboard
fun newFromIso8601(text: String, defaultTz: TimeZone? = null): DateTime?

Creates a #GDateTime corresponding to the given ISO 8601 formatted string

Link copied to clipboard

Creates a #GDateTime corresponding to the given #GTimeVal @tv in the local time zone.

Link copied to clipboard

Creates a #GDateTime corresponding to the given #GTimeVal @tv in UTC.

Link copied to clipboard

Creates a #GDateTime corresponding to the given Unix time @t in the local time zone.

Link copied to clipboard

Creates a struct@GLib.DateTime corresponding to the given Unix time @t in the local time zone.

Link copied to clipboard

Creates a #GDateTime corresponding to the given Unix time @t in UTC.

Link copied to clipboard

Creates a struct@GLib.DateTime corresponding to the given Unix time @t in UTC.

Link copied to clipboard
fun newLocal(year: Int, month: Int, day: Int, hour: Int, minute: Int, seconds: Double): DateTime?

Creates a new #GDateTime corresponding to the given date and time in the local time zone.

Link copied to clipboard

Creates a #GDateTime corresponding to this exact instant in the given time zone @tz. The time is as accurate as the system allows, to a maximum accuracy of 1 microsecond.

Link copied to clipboard

Creates a #GDateTime corresponding to this exact instant in the local time zone.

Link copied to clipboard

Creates a #GDateTime corresponding to this exact instant in UTC.

Link copied to clipboard
fun newUtc(year: Int, month: Int, day: Int, hour: Int, minute: Int, seconds: Double): DateTime?

Creates a new #GDateTime corresponding to the given date and time in UTC.

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

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