TimeZone

#GTimeZone 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 #GTimeZone corresponding to @identifier.

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.

doref
TimeZone doref()

Increases the reference count on @tz.

findInterval
int findInterval(GTimeType type, long time)

Finds an the 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.

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()

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.

unref
void unref()

Decreases the reference count on @tz.

Variables

gTimeZone
GTimeZone* gTimeZone;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta

Since

2.26