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)

A version of g_time_zone_new_identifier() which returns the UTC time zone if @identifier could not be parsed or loaded.

this
this(int seconds)

Creates a #GTimeZone corresponding to the given constant offset from UTC, in seconds.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

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 #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.

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

ownedRef
bool ownedRef;
Undocumented in source.

Meta

Since

2.26