Top | ![]() |
![]() |
![]() |
![]() |
ICalTimetype *
i_cal_time_null_time (void
);
Create a default time which is an epoch time
Since:
ICalTimetype *
i_cal_time_null_date (void
);
Create a null date, which indicates no time has been set
Since:
ICalTimetype *
i_cal_time_current_time_with_zone (ICalTimezone *zone
);
Create a ICalTimetype according to the timezone and current time
zone |
The timezone used to create a ICalTimetype according to the current time. |
[in][transfer none] |
Since:
ICalTimetype *
i_cal_time_today (void
);
Create a ICalTimetype representing today
Since:
ICalTimetype * i_cal_time_from_timet_with_zone (const
,time_t v,
gint is_dateICalTimezone *zone
);
Convert seconds past UNIX epoch to a timetype, using timezones.
v |
The seconds past since epoch time |
|
is_date |
Whether it is a date type, 1 if yes, 0 if not. |
|
zone |
The timezone. |
[in][transfer none] |
Since:
ICalTimetype *
i_cal_time_from_string (const gchar *str
);
create a time from an ISO format string
Since:
ICalTimetype * i_cal_time_from_day_of_year (const
,gint dayconst
);gint year
Create a new time, given a day of year and a year.
Since:
time_t i_cal_time_as_timet (ICalTimetype *tt
);
Return the time as seconds past the UNIX epoch
Since:
time_t i_cal_time_as_timet_with_zone (ICalTimetype *tt
,ICalTimezone *zone
);
Return the time as seconds past the UNIX epoch, using timezones.
Since:
gchar * i_cal_time_as_ical_string_r (ICalTimetype *tt
);
Return a string represention of the time, in RFC2445 format.
Since:
const ICalTimezone *
i_cal_time_get_timezone (ICalTimetype *tt
);
Return the timezone
Since:
ICalTimetype * i_cal_time_set_timezone (ICalTimetype *tt
,ICalTimezone *zone
);
Set the timezone
Since:
constgchar * i_cal_time_get_tzid (ICalTimetype *tt
);
Return the tzid, or NULL for a floating time
Since:
gint i_cal_time_day_of_year (ICalTimetype *tt
);
Return the day of the year of the given time
Since:
gint i_cal_time_day_of_week (ICalTimetype *tt
);
Return the day of the week of the given time. Sunday is 1
Since:
gint i_cal_time_start_doy_week (ICalTimetype *tt
,);
gint fdow
Return the day of the year for the first day of the week that the given time is within.
Since:
gint i_cal_time_week_number (ICalTimetype *tt
);
Return the week number for the week the given time is within.
Since:
gint i_cal_time_is_null_time (ICalTimetype *tt
);
Return true of the time is null.
Since:
gint i_cal_time_is_valid_time (ICalTimetype *tt
);
Return true of the time is null.
Since:
gint i_cal_time_is_date (ICalTimetype *tt
);
Returns true if time is of DATE type, false if DATE-TIME.
Since:
gint i_cal_time_is_utc (ICalTimetype *tt
);
Returns true if time is relative to UTC zone.
Since:
gint i_cal_time_compare (ICalTimetype *a
,ICalTimetype *b
);
Return -1, 0, or 1 to indicate that a less than b, a==b or a larger than b.
a |
The ICalTimetype to be compared. |
[in][transfer none] |
b |
The ICalTimetype to be compared. |
[in][transfer none] |
Since:
gint i_cal_time_compare_date_only (ICalTimetype *a
,ICalTimetype *b
);
like icaltime_compare, but only use the date parts.
a |
The ICalTimetype to be compared. |
[in][transfer none] |
b |
The ICalTimetype to be compared. |
[in][transfer none] |
Since:
gint i_cal_time_compare_date_only_tz (ICalTimetype *a
,ICalTimetype *b
,ICalTimezone *zone
);
like icaltime_compare_tz, but only use the date parts.
a |
The ICalTimetype to be compared. |
[in][transfer none] |
b |
The ICalTimetype to be compared. |
[in][transfer none] |
zone |
The target timezone. |
[transfer full] |
Since:
void i_cal_time_adjust (ICalTimetype *tt
,const
,gint daysconst
,gint hoursconst
,gint minutesconst
);gint seconds
like icaltime_compare_tz, but only use the date parts.
tt |
The ICalTimetype to be set |
|
days |
difference of days adjusted |
|
hours |
difference of hours adjusted |
|
minutes |
difference of minutes adjusted |
|
seconds |
difference of seconds adjusted |
Since:
ICalTimetype *
i_cal_time_normalize (ICalTimetype *t
);
Normalize the icaltime, so that all fields are within the normal range.
Since:
ICalTimetype * i_cal_time_convert_to_zone (ICalTimetype *t
,ICalTimezone *zone
);
Convert tt, of timezone tzid, into a utc time. Does nothing if the time is already UTC.
t |
The ICalTimetype to be normalized. |
[in][transfer none] |
zone |
The target timezone. |
[transfer full] |
Since:
gint i_cal_time_days_in_month (const
,gint monthconst
);gint year
Get the number of days in the target month in the target year.
Since:
gint i_cal_time_days_is_leap_year (const
);gint year
Check whether a year is a leap year.
Since:
gint i_cal_time_days_in_year (const
);gint year
Return the number of days in this year.
Since:
ICalTimeSpan * i_cal_time_span_new (ICalTimetype *dtstart
,ICalTimetype *dtend
,);
gint is_busy
Create a new ICalTimeSpan.
dtstart |
The start of ICalTimeSpan |
|
dtend |
The end of ICalTimeSpan |
|
is_busy |
Whether this span is busy |
Since:
gint i_cal_time_span_overlaps (ICalTimeSpan *s1
,ICalTimeSpan *s2
);
Check whether two spans overlap.
Since:
gint i_cal_time_span_contains (ICalTimeSpan *s
,ICalTimeSpan *container
);
Check whether one ICalTimeSpan is contained in another ICalTimeSpan.
Since:
ICalTimetype * i_cal_time_add (ICalTimetype *t
,ICalDurationType *d
);
Add a time duration on the time.
The ICalTimetype results. The native object is the same. But since it is a bare object, so it won't cause segmentation.
[transfer full]
Since:
ICalDurationType * i_cal_time_subtract (ICalTimetype *t1
,ICalTimetype *t2
);
Get the duration between two time.
Since: