ToLocalTime

STD.Date.TimeZone.ToLocalTime( utcTime, toTimeZoneAbbrev, [toLocation ] )

utcTimeREQUIRED. The UTC time value (in Time_t format) to adjust.
toTimeZoneAbbrevREQUIRED. The time zone abbreviation designated as the ending point; must be a non-empty uppercase string.
toLocationOPTIONAL. The name of the location that goes along with toTimeZoneAbbrev; if a location is not provided or is an empty string, the first record matching toTimeZoneAbbrev is used.
Returns:The given UTC time value (in Time_t format) adjusted to the time zone defined by toTimeZoneAbbrev and toLocation; if the time zone cannot be found then the original time value is returned unchanged

The STD.Date.TimeZone.ToLocalTime function converts a UTC time to a time designated by a time zone abbreviation and optional location.

Example:

IMPORT STD;
STD.Date.TimeZone.ToLocalTime(205246,'CST','NORTH AMERICA');

See Also: AdjustTimeTZ, ToUTCTime