Class

ICalGLibTime

since: 3.0

[]

Description [src]

final class ICalGLib.Time : ICalGLib.Object
{
  /* No available fields */
}

This is the ICalTime instance.

Available since: 3.0

[]

Hierarchy

hierarchy this ICalTime ancestor_0 ICalObject ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0
[]

Constructors

i_cal_time_new

Creates a new ICalTime.

since: 1.0

i_cal_time_new_current_with_zone

Creates a ICalTime according to the timezone and current time.

since: 1.0

i_cal_time_new_from_day_of_year

Creates a new time, given a day of year and a year.

since: 1.0

i_cal_time_new_from_string

Creates a time from an ISO format string.

since: 1.0

i_cal_time_new_from_timet_with_zone

Converts seconds past UNIX epoch to a timetype, using timezones.

since: 1.0

i_cal_time_new_full

Create a new libical-glib object from the native libical object and the owner.

since: 1.0

i_cal_time_new_null_date

Creates a null date, which indicates no time has been set.

since: 1.0

i_cal_time_new_null_time

Creates a default time which is an epoch time.

since: 1.0

i_cal_time_new_today

Creates a ICalTime representing today.

since: 1.0

[]

Functions

i_cal_time_days_in_month

Gets the number of days in the target month in the target year.

since: 1.0

i_cal_time_days_in_year

Returns the number of days in this year.

since: 2.0

i_cal_time_days_is_leap_year

Checks whether a year is a leap year.

since: 1.0

i_cal_time_timezone_expand_vtimezone

Applies a list of timezone changes on the array of components until the end year.

since: 2.0

[]

Instance methods

i_cal_time_add

Adds a time duration on the time.

since: 2.0

i_cal_time_adjust

Adds or subtracts a number of days, hours, minutes and seconds from tt.

since: 1.0

i_cal_time_as_ical_string

Returns a string representation of the time, in RFC2445 format.

since: 1.0

i_cal_time_as_timet

Returns the time as seconds past the UNIX epoch.

since: 1.0

i_cal_time_as_timet_with_zone

Returns the time as seconds past the UNIX epoch, using timezones.

since: 1.0

i_cal_time_clone

Creates a new ICalTime, copy of timetype.

since: 1.0

i_cal_time_compare

I_cal_time_compare returns an integer indicating the result of the comparison, as follow:

since: 1.0

i_cal_time_compare_date_only

Like i_cal_time_compare(), but only use the date parts.

since: 1.0

i_cal_time_compare_date_only_tz

Like i_cal_time_compare_tz(), but only use the date parts; accepts timezone.

since: 1.0

i_cal_time_convert_timezone

Convert time from one timezone to another.

since: 1.0

i_cal_time_convert_to_zone

Converts tt to zone and return new ICalTime object.

since: 1.0

i_cal_time_convert_to_zone_inplace

Converts tt to zone and store the result into tt.

unstable since: 3.0.5

i_cal_time_day_of_week

Returns the day of the week of the given time. Sunday is 1.

since: 1.0

i_cal_time_day_of_year

Returns the day of the year of the given time.

since: 1.0

i_cal_time_get_date

Gets the year/month/date parts of the timetype in one call.

since: 1.0

i_cal_time_get_day

Gets the day of ICalTime.

since: 1.0

i_cal_time_get_hour

Gets the hour of ICalTime.

since: 1.0

i_cal_time_get_minute

Gets the minute of ICalTime.

since: 1.0

i_cal_time_get_month

Gets the month of ICalTime.

since: 1.0

i_cal_time_get_second

Gets the second of ICalTime.

since: 1.0

i_cal_time_get_time

Gets the hour/minute/second parts of the timetype in one call.

since: 1.0

i_cal_time_get_timezone

Returns the timezone, the ICalTimezone object is cached and can be either unreferenced once the last instance is used or can be kept until i_cal_object_free_global_objects() is called (usually at the very end of the program).

since: 1.0

i_cal_time_get_tzid

Returns the tzid, or NULL for a floating time.

since: 1.0

i_cal_time_get_year

Gets the year of ICalTime.

since: 1.0

i_cal_time_is_date

Returns true if time is of DATE type, false if DATE-TIME.

since: 1.0

i_cal_time_is_daylight

Gets the is_daylight of ICalTime.

since: 1.0

i_cal_time_is_null_time

Returns true if the time is null.

since: 1.0

i_cal_time_is_utc

Returns true if time is relative to UTC zone.

since: 1.0

i_cal_time_is_valid_time

Returns true if the time is null.

since: 1.0

i_cal_time_normalize

Normalizes the icaltime, so that all fields are within the normal range.

since: 1.0

i_cal_time_normalize_inplace

Normalizes the tt, so that all fields are within the normal range.

unstable since: 3.0.5

i_cal_time_set_date

Sets the year/month/date parts of the timetype in one call. This doesn’t verify validity of the given date.

since: 1.0

i_cal_time_set_day

Sets the day of ICalTime.

since: 1.0

i_cal_time_set_hour

Sets the hour of ICalTime.

since: 1.0

i_cal_time_set_is_date

Sets the is_date of ICalTime.

since: 1.0

i_cal_time_set_is_daylight

Sets the is_daylight of ICalTime.

since: 1.0

i_cal_time_set_minute

Sets the minute of ICalTime.

since: 1.0

i_cal_time_set_month

Sets the month of ICalTime.

since: 1.0

i_cal_time_set_second

Sets the second of ICalTime.

since: 1.0

i_cal_time_set_time

Sets the hour/minute/second parts of the timetype in one call. This doesn’t verify validity of the given time.

since: 1.0

i_cal_time_set_timezone

Sets the timezone of the tt.

since: 1.0

i_cal_time_set_year

Sets the year of ICalTime.

since: 1.0

i_cal_time_start_doy_week

Returns the day of the year for the first day of the week that the given time is within.

since: 1.0

i_cal_time_subtract

Gets the duration between two time.

since: 2.0

i_cal_time_week_number

Returns the week number for the week the given time is within.

since: 1.0

Methods inherited from ICalObject (12)
Methods inherited from GObject (43)
[]

Properties

Properties inherited from ICalObject (5)
[]

Signals

Signals inherited from GObject (1)

Class structure