Time

Represents a time information.

Constructors

this
this(ushort hour, ushort minute, ushort second, gulong fraction, glong timezone)

Create a time.Time boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
changeTimezone
void changeTimezone(glong ntz)

Changes time's timezone (for example to convert from GMT to another time zone). If time's current timezone is unset (i.e. equal to GDA_TIMEZONE_INVALID), then this function simply sets time's timezone attribute; Otherwise, it adds or removes hours, minutes or seconds to reflect the time in the new timezone.

self
Time self()

Returns this, for use in with statements.

valid
bool valid()

Properties

_gType
GType _gType [@property getter]
fraction
gulong fraction [@property getter]

Get fraction field.

fraction
gulong fraction [@property setter]

Set fraction field.

hour
ushort hour [@property getter]

Get hour field.

hour
ushort hour [@property setter]

Set hour field.

minute
ushort minute [@property getter]

Get minute field.

minute
ushort minute [@property setter]

Set minute field.

second
ushort second [@property getter]

Get second field.

second
ushort second [@property setter]

Set second field.

timezone
glong timezone [@property getter]

Get timezone field.

timezone
glong timezone [@property setter]

Set timezone field.

Static functions

_getGType
GType _getGType()
copy
void* copy(void* boxed)
free
void free(void* boxed)

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.