ICalGLib.Duration

g GObject.Object GObject.Object ICalGLib.Object ICalGLib.Object GObject.Object->ICalGLib.Object ICalGLib.Duration ICalGLib.Duration ICalGLib.Object->ICalGLib.Duration

Subclasses:

None

Methods

Inherited:

ICalGLib.Object (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new_bad_duration ()

class

new_from_int (t)

class

new_from_string (str)

class

new_null_duration ()

as_ical_string ()

as_int ()

get_days ()

get_hours ()

get_minutes ()

get_seconds ()

get_weeks ()

is_bad_duration ()

is_neg ()

is_null_duration ()

set_days (days)

set_hours (hours)

set_is_neg (is_neg)

set_minutes (minutes)

set_seconds (seconds)

set_weeks (weeks)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

ICalGLib.Object (5)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class ICalGLib.Duration(**kwargs)
Bases:

ICalGLib.Object

Abstract:

No

Structure:

ICalGLib.DurationClass

This is the ICalGLib.Duration instance.

classmethod new_bad_duration()
Returns:

The newly created ICalGLib.Duration

Return type:

ICalGLib.Duration

Creates a bad ICalGLib.Duration.

New in version 1.0.

classmethod new_from_int(t)
Parameters:

t (int) – The duration in second

Returns:

The newly created ICalGLib.Duration

Return type:

ICalGLib.Duration

Creates a ICalGLib.Duration from the duration in second.

New in version 1.0.

classmethod new_from_string(str)
Parameters:

str (str) – The string representation of the duration

Returns:

The newly created ICalGLib.Duration

Return type:

ICalGLib.Duration

Creates a ICalGLib.Duration from the duration in string.

New in version 1.0.

classmethod new_null_duration()
Returns:

The newly created ICalGLib.Duration

Return type:

ICalGLib.Duration

Creates a ICalGLib.Duration with all the fields to be zero.

New in version 1.0.

as_ical_string()
Returns:

The duration in string

Return type:

str

Converts the ICalGLib.Duration to the representation in string.

New in version 1.0.

as_int()
Returns:

The duration in second

Return type:

int

Converts the ICalGLib.Duration to the representation in second.

New in version 1.0.

get_days()
Returns:

The days.

Return type:

int

Gets the days of ICalGLib.Duration.

New in version 1.0.

get_hours()
Returns:

The hours.

Return type:

int

Gets the hours of ICalGLib.Duration.

New in version 1.0.

get_minutes()
Returns:

The minutes.

Return type:

int

Gets the minutes of ICalGLib.Duration.

New in version 1.0.

get_seconds()
Returns:

The seconds.

Return type:

int

Gets the seconds of ICalGLib.Duration.

New in version 1.0.

get_weeks()
Returns:

The weeks.

Return type:

int

Gets the weeks of ICalGLib.Duration.

New in version 1.0.

is_bad_duration()
Returns:

1 if self is the bad_duration, 0 if not.

Return type:

bool

Checks whether the ICalGLib.Duration is the bad_duration.

New in version 1.0.

is_neg()
Returns:

The is_neg.

Return type:

bool

Gets the is_neg of ICalGLib.Duration.

New in version 1.0.

is_null_duration()
Returns:

1 if self is the null_duration, 0 if not.

Return type:

bool

Checks whether the ICalGLib.Duration is the null_duration.

New in version 1.0.

set_days(days)
Parameters:

days (int) – The days

Sets the days of ICalGLib.Duration.

New in version 1.0.

set_hours(hours)
Parameters:

hours (int) – The hours

Sets the hours of ICalGLib.Duration.

New in version 1.0.

set_is_neg(is_neg)
Parameters:

is_neg (bool) – The is_neg

Sets the is_neg of ICalGLib.Duration.

New in version 1.0.

set_minutes(minutes)
Parameters:

minutes (int) – The minutes

Sets the minutes of ICalGLib.Duration.

New in version 1.0.

set_seconds(seconds)
Parameters:

seconds (int) – The seconds

Sets the seconds of ICalGLib.Duration.

New in version 1.0.

set_weeks(weeks)
Parameters:

weeks (int) – The weeks

Sets the weeks of ICalGLib.Duration.

New in version 1.0.