ICalGLib.Duration¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.Duration(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.Duration
instance.- classmethod new_bad_duration()¶
- Returns:
The newly created
ICalGLib.Duration
- Return type:
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:
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:
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:
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:
Converts the
ICalGLib.Duration
to the representation in string.New in version 1.0.
- as_int()¶
- Returns:
The duration in second
- Return type:
Converts the
ICalGLib.Duration
to the representation in second.New in version 1.0.
- get_days()¶
- Returns:
The days.
- Return type:
Gets the days of
ICalGLib.Duration
.New in version 1.0.
- get_hours()¶
- Returns:
The hours.
- Return type:
Gets the hours of
ICalGLib.Duration
.New in version 1.0.
- get_minutes()¶
- Returns:
The minutes.
- Return type:
Gets the minutes of
ICalGLib.Duration
.New in version 1.0.
- get_seconds()¶
- Returns:
The seconds.
- Return type:
Gets the seconds of
ICalGLib.Duration
.New in version 1.0.
- get_weeks()¶
- Returns:
The weeks.
- Return type:
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:
Checks whether the
ICalGLib.Duration
is the bad_duration.New in version 1.0.
- is_neg()¶
- Returns:
The is_neg.
- Return type:
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:
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.