maxon.TimeValue

Description

The maxon.TimeValue class encapsulates a timer value.

Inheritance diagram

Inheritance

Child Class:

Methods Signature

GetSeconds()

Gets the time value in seconds from the instance.

SetSeconds(seconds)

Set the time value in seconds for the instance.

__add__(b)

Adds a time value in seconds to the current time.

__init__(seconds)

Initializes the time object with a values in seconds.

__radd__(b)

Adds a time in seconds to the current time.

__repr__()

Returns the string representation of the instance as the time value in seconds.

__rsub__(b)

__str__()

Return str(self).

__sub__(b)

Subtracts a time value in seconds from the current time.

Methods Definition

TimeValue.GetSeconds()

Gets the time value in seconds from the instance.

Returns

The time value in seconds.

Return type

int

TimeValue.SetSeconds(seconds)

Set the time value in seconds for the instance.

Parameters

seconds (float) – The value to set.

TimeValue.__add__(b)

Adds a time value in seconds to the current time.

Parameters

b (maxon.TimeValue) – The other time.

TimeValue.__init__(seconds)

Initializes the time object with a values in seconds.

Parameters

seconds (float) – The number of seconds to initalize the time object with.

TimeValue.__radd__(b)

Adds a time in seconds to the current time.

Parameters

b (maxon.TimeValue) – The other time.

TimeValue.__repr__()

Returns the string representation of the instance as the time value in seconds.

Return type

str

TimeValue.__rsub__(b)
TimeValue.__str__()

Return str(self).

TimeValue.__sub__(b)

Subtracts a time value in seconds from the current time.

Parameters

b (maxon.TimeValue) – The other time.