Companion

Functions

Link copied to clipboard

This is deprecated since version 2.62.

Link copied to clipboard
fun fromUnixLocal(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 fromUnixLocalUsec(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 fromUnixUtcUsec(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 getType(): <Error class: unknown class>

Get the GType of DateTime

Link copied to clipboard
fun local(    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 local time zone.