ToUTCTime

STD.Date.TimeZone.ToUTCTime( localTime, fromTimeZoneAbbrev, [fromLocation ] )

localTimeREQUIRED. The time value (in Time_t format) to adjust.
fromTimeZoneAbbrevREQUIRED. The time zone abbreviation that the localTime value is assumed to be within; must be a non-empty uppercase string.
fromLocationOPTIONAL. The name of the location that goes along with fromTimeZoneAbbrev; if a location is not provided or is an empty string, the first record matching fromTimeZoneAbbrev is used.
Returns:The given local time value adjusted to UTC time; if the given time zone cannot be found then the original UTC time value is returned unchanged.

The STD.Date.TimeZone.ToUTCTime function converts a local time, defined with a time zone abbreviation and optional location, to a UTC time.

Example:

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

See Also: AdjustTimeTZ, ToLocalTime