util_time_to_zone


Description:


[ Version ( since = "3.58" ) ]
public time_t util_time_to_zone (Time itt, string? tzid, Timezone to_zone, Component? vcalendar, TimezoneCache? tz_cache, out Time out_itt)

Converts the itt in tzid to to_zone.

The vcalendar is used to get the timezone for the property, if provided, otherwise the timezone is tried to be found in the tz_cache. If neither can get it, the iCal builtin timezones are checked. When the set timezone cannot be found, floating time is used (which can be almost always wrong).

Parameters:

itt

an Time to convert

tzid

a timezone ID the itt is at, or null for floating time

vcalendar

an optional VCALENDAR component with timezones for the tzid, or null when not available

tz_cache

an TimezoneCache to use to read the time zones from, or null if not available

out_itt

return location for the converted time as Time, or null when not requested

Returns:

the time converted into to_zone, or -1, when the conversion was not possible.


Namespace: ECal
Package: libecal-2.0