convertTZ
Syntax
convertTZ(obj, srcTZ, destTZ)
Details
Convert obj from time zone srcTZ to time zone destTZ. Daylight saving time is considered in time zone conversion.
Parameters
obj is a scalar or vector of DATETIME, TIMESTAMP, or NANOTIMESTAMP type.
srcTZ and destTZ are both strings indicating time zones.
Returns
An object with the same data type and form as X.
Examples
convertTZ(2016.04.25T08:25:45,"US/Eastern","Asia/Shanghai");
// output: 2016.04.25T20:25:45
