remove_timezone


Description:

[ Version ( since = "3.30" ) ]
public bool remove_timezone (string tzid, uint dec_ref_counts, Cancellable? cancellable = null) throws Error

Dereferences use count of the time zone with ID tzid by dec_ref_counts and removes the timezone from the cache when the reference count reaches zero.

Special case is with dec_ref_counts being zero, in which case the corresponding timezone is removed regardless of the current reference count.

It's not an error when the timezone doesn't exist in the cache.

Parameters:

this

an CalCache

tzid

timezone ID to remove/dereference

dec_ref_counts

reference counts to drop, 0 to remove it regardless of the current reference count

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.