Top |
ZeitgeistTimeRangeZeitgeistTimeRange — Immutable representation of an interval in time, marked by a beginning and an end |
#define | ZEITGEIST_TYPE_TIME_RANGE |
struct | ZeitgeistTimeRange |
struct | ZeitgeistTimeRangeClass |
A light, immutable, encapsulation of an interval in time, marked by a beginning and an end.
GVariant *
zeitgeist_time_range_to_variant (ZeitgeistTimeRange *self
);
a new variant holding the time range
ZeitgeistTimeRange * zeitgeist_time_range_intersect (ZeitgeistTimeRange *self
,ZeitgeistTimeRange *time_range
);
Check whether two time ranges are intersecting.
self |
the ZeitgeistTimeRange instance |
|
time_range |
. the second time range to compare with . |
[in] |
ZeitgeistTimeRange * zeitgeist_time_range_new (gint64 start_msec
,gint64 end_msec
);
starting timestamp in number of milliseconds since the Unix Epoch
ZeitgeistTimeRange *
zeitgeist_time_range_new_anytime (void
);
a new time range starting from the beginning of the Unix Epoch stretching to the end of time
ZeitgeistTimeRange *
zeitgeist_time_range_new_to_now (void
);
a new time range starting from the beggining of the Unix Epoch ending a the moment of invocation
ZeitgeistTimeRange *
zeitgeist_time_range_new_from_now (void
);
a new time range starting from the moment of invocation to the end of time
ZeitgeistTimeRange * zeitgeist_time_range_new_from_variant (GVariant *variant
,GError **error
);
Create a TimeRange from a variant.
variant |
. a variant representing a TimeRange . |
[in] |
error |
location to store the error occurring, or |
[error-domains ZeitgeistDataModelError] |
gint64
zeitgeist_time_range_get_start (ZeitgeistTimeRange *self
);
Get and return the current value of the "start" property.
gint64
zeitgeist_time_range_get_end (ZeitgeistTimeRange *self
);
Get and return the current value of the "end" property.
#define ZEITGEIST_TYPE_TIME_RANGE (zeitgeist_time_range_get_type ())
The type for ZeitgeistTimeRange.
struct ZeitgeistTimeRange;
Immutable representation of an interval in time, marked by a beginning and an end
A light, immutable, encapsulation of an interval in time, marked by a beginning and an end.
struct ZeitgeistTimeRangeClass { GObjectClass parent_class; };
The class structure for ZEITGEIST_TYPE_TIME_RANGE
. All the fields in this structure are private and should never be accessed directly.