Companion

object Companion

Functions

Link copied to clipboard
fun getType(): <Error class: unknown class>

Get the GType of DateTime

Link copied to clipboard
fun new(tz: TimeZone, year: <Error class: unknown class>, month: <Error class: unknown class>, day: <Error class: unknown class>, hour: <Error class: unknown class>, minute: <Error class: unknown class>, seconds: <Error class: unknown class>): 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
fun newFromUnixLocal(t: <Error class: unknown class>): DateTime?

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

Link copied to clipboard
fun newFromUnixLocalUsec(usecs: <Error class: unknown class>): DateTime?

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

Link copied to clipboard
fun newFromUnixUtc(t: <Error class: unknown class>): DateTime?

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

Link copied to clipboard
fun newFromUnixUtcUsec(usecs: <Error class: unknown class>): DateTime?

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

Link copied to clipboard
fun newLocal(year: <Error class: unknown class>, month: <Error class: unknown class>, day: <Error class: unknown class>, hour: <Error class: unknown class>, minute: <Error class: unknown class>, seconds: <Error class: unknown class>): 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: <Error class: unknown class>, month: <Error class: unknown class>, day: <Error class: unknown class>, hour: <Error class: unknown class>, minute: <Error class: unknown class>, seconds: <Error class: unknown class>): DateTime?

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