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 timezone

Time zone the local time is in

DATETIME time

Timestamp 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

RECORD

The time zone information

STRING tzid

The (canonicalized) time zone identifier

STRING vtimezone

The 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.