Resolution:Description:
===========
Converting time from one timezone to another.
Environment:
===========
TIBCO BusinessEvents 4.x ,5.x
All Operating Systems
Resolution:
===========
To convert timezone from PST to GMT use the following TIBCO BusinessEvents rule language code.
Code:
-------
DateTime pst = DateTime.createTime(2013,9,18,17,0,0,"PST");
System.debugOut(DateTime.format(pst,"yyyy-MM-dd HH:mm:ss"));
DateTime gmt = DateTime.translateTime(pst,"GMT");
System.debugOut(DateTime.format(gmt,"yyyy-MM-dd HH:mm:ss"));
Output:(Log output)
--------
Info [AgentMgr.Thread.1] - [user] [inference-class] 2013-10-18 17:00:00
Info [AgentMgr.Thread.1] - [user] [inference-class] 2013-10-19 00:00:00