GetVTimeZone (open)
Get the iCalendar time zone information for a given time zone
Syntax
LOADLIB "wh::util/localization.whlib";
RECORD FUNCTION GetVTimeZone(STRING timezone, DATETIME time)Parameters
STRING timezoneTime zone the local time is in
DATETIME timeTimestamp to get the time zone information for (set to DEFAULT DATETIME to get all time zone data, including historical data, which is usually not what you want)
Return value
RECORDThe time zone information
STRING tzidThe (canonicalized) time zone identifier
STRING vtimezoneThe iCalendar time zone data
Description
This function returns the iCalendar encoded time zone data (without a trailing CRLF), which can be added to an iCalendar file to encode events that have timestamps in a time zone.