TimeZone

class TimeZone(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

#GTimeZone is an opaque structure whose members cannot be accessed directly.

Skipped during bindings generation

  • parameter time_: Unsupported pointer to primitive type

Since

2.26

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<TimeZone, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibTimeZonePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun findInterval(type: TimeType, time: Long): Int

Finds an interval within @tz that corresponds to the given @time_. The meaning of @time_ depends on @type.

Link copied to clipboard
fun getAbbreviation(interval: Int): String

Determines the time zone abbreviation to be used during a particular

Link copied to clipboard

Get the identifier of this #GTimeZone, as passed to g_time_zone_new(). If the identifier passed at construction time was not recognised, UTC will be returned. If it was null, the identifier of the local timezone at construction time will be returned.

Link copied to clipboard
fun getOffset(interval: Int): Int

Determines the offset to UTC in effect during a particular @interval of time in the time zone @tz.

Link copied to clipboard
fun isDst(interval: Int): Boolean

Determines if daylight savings time is in effect during a particular

Link copied to clipboard
fun ref(): TimeZone

Increases the reference count on @tz.

Link copied to clipboard
fun unref()

Decreases the reference count on @tz.