Zeitgeist.TimeRange

g GObject.Object GObject.Object Zeitgeist.TimeRange Zeitgeist.TimeRange GObject.Object->Zeitgeist.TimeRange

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

anytime ()

class

from_now ()

class

from_variant (variant)

class

new (start_msec, end_msec)

class

to_now ()

get_end ()

get_start ()

intersect (time_range)

to_variant ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

end

int

r

end

start

int

r

start

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Zeitgeist.TimeRange(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Zeitgeist.TimeRangeClass

classmethod anytime()
Return type:

Zeitgeist.TimeRange

classmethod from_now()
Return type:

Zeitgeist.TimeRange

classmethod from_variant(variant)
Parameters:

variant (GLib.Variant) –

Raises:

GLib.Error

Return type:

Zeitgeist.TimeRange

classmethod new(start_msec, end_msec)
Parameters:
  • start_msec (int) –

  • end_msec (int) –

Return type:

Zeitgeist.TimeRange

classmethod to_now()
Return type:

Zeitgeist.TimeRange

get_end()
Return type:

int

get_start()
Return type:

int

intersect(time_range)
Parameters:

time_range (Zeitgeist.TimeRange) –

Return type:

Zeitgeist.TimeRange or None

to_variant()
Return type:

GLib.Variant

Property Details

Zeitgeist.TimeRange.props.end
Name:

end

Type:

int

Default Value:

0

Flags:

READABLE

end

Zeitgeist.TimeRange.props.start
Name:

start

Type:

int

Default Value:

0

Flags:

READABLE

start