Ags.Timestamp

g Ags.Timestamp Ags.Timestamp GObject.Object GObject.Object GObject.Object->Ags.Timestamp

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_ags_offset ()

get_unix_time ()

set_ags_offset (ags_offset)

set_flags (flags)

set_unix_time (unix_time)

test_flags (flags)

unset_flags (flags)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

attack

int

r

delay

float

r

flags

int

r

gobject

GObject.Object

r

obj_mutex

GLib.RecMutex

r

Class Details

class Ags.Timestamp(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ags.TimestampClass

classmethod new()
Returns:

a new Ags.Timestamp

Return type:

Ags.Timestamp

Creates an Ags.Timestamp

New in version 3.0.0.

get_ags_offset()
Returns:

the AGS offset as unsigned 64 bit integer

Return type:

int

Get AGS offset.

New in version 3.0.0.

get_unix_time()
Returns:

the unix time as time_t value

Return type:

int

Get unix time.

New in version 3.0.0.

set_ags_offset(ags_offset)
Parameters:

ags_offset (int) – the AGS offset

Set AGS offset as unsigned 64 bit integer.

New in version 3.0.0.

set_flags(flags)
Parameters:

flags (Ags.TimestampFlags) – the flags

Set flags of self.

New in version 3.0.0.

set_unix_time(unix_time)
Parameters:

unix_time (int) – the unix time value

Set unix time.

New in version 3.0.0.

test_flags(flags)
Parameters:

flags (Ags.TimestampFlags) – the flags

Returns:

if flags set returning True otherwise False

Return type:

bool

Test flags to be set.

New in version 3.0.0.

unset_flags(flags)
Parameters:

flags (Ags.TimestampFlags) – the flags

Unset flags of self.

New in version 3.0.0.