TimeZone

glib.TimeZone is an opaque structure whose members cannot be accessed directly.

Constructors

this
this(GTimeZone* gTimeZone, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string identifier)

Creates a glib.TimeZone corresponding to identifier.

this
this(int seconds)

Creates a glib.TimeZone corresponding to the given constant offset from UTC, in seconds.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

adjustTime
int adjustTime(GTimeType type, long* time)

Finds an interval within tz that corresponds to the given time_, possibly adjusting time_ if required to fit into an interval. The meaning of time_ depends on type.

findInterval
int findInterval(GTimeType type, long time)

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

getAbbreviation
string getAbbreviation(int interval)

Determines the time zone abbreviation to be used during a particular interval of time in the time zone tz.

getIdentifier
string getIdentifier()

Get the identifier of this glib.TimeZone, as passed to TimeZone.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.

getOffset
int getOffset(int interval)

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

getStruct
void* getStruct()

the main Gtk struct as a void*

getTimeZoneStruct
GTimeZone* getTimeZoneStruct(bool transferOwnership)

Get the main Gtk struct

isDst
bool isDst(int interval)

Determines if daylight savings time is in effect during a particular interval of time in the time zone tz.

ref_
TimeZone ref_()

Increases the reference count on tz.

unref
void unref()

Decreases the reference count on tz.

Variables

gTimeZone
GTimeZone* gTimeZone;

the main Gtk struct

Meta

Since

2.26