Question Rochdi Badis · Jun 2, 2022 Converting from UTC #Ensemble Hi Guy, is there like a utility or a function that convert from UTC to Locale time? Thanks Product version: Ensemble 2014.1 0 0 182
Mihoko Iijima · Jun 3, 2022 You can convert with $SYSTEM.Util.UTCtoLocalWithZTIMEZONE(). https://cedocs.intersystems.com/ens20141/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=%25SYS&CLASSNAME=%25SYSTEM.Util USER>write $SYSTEM.Util.UTCtoLocalWithZTIMEZONE($ZTIMESTAMP) 66263,48361.382728 USER>write $ZTIMESTAMP 66263,15968.3579578 USER> USER>write $ZDATETIME($SYSTEM.Util.UTCtoLocalWithZTIMEZONE($ZTIMESTAMP),3) 2022-06-03 13:26:26 USER>write $ZDATETIME($ZTIMESTAMP,3) 2022-06-03 04:26:34 USER> Tom Cross · Jun 3, 2022 Hi Rochdi, Try this Link Edward Jalbert · Jun 3, 2022 look at the $zdate ? https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... Erik Hemdal · Jul 6, 2022 Perhaps this will help you: https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9
Tom Cross · Jun 3, 2022 Hi Rochdi, Try this Link Edward Jalbert · Jun 3, 2022 look at the $zdate ? https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... Erik Hemdal · Jul 6, 2022 Perhaps this will help you: https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9
Edward Jalbert · Jun 3, 2022 look at the $zdate ? https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... Erik Hemdal · Jul 6, 2022 Perhaps this will help you: https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9
Erik Hemdal · Jul 6, 2022 Perhaps this will help you: https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9
You can convert with $SYSTEM.Util.UTCtoLocalWithZTIMEZONE().
https://cedocs.intersystems.com/ens20141/csp/documatic/%25CSP.Documatic.cls?&LIBRARY=%25SYS&CLASSNAME=%25SYSTEM.Util
USER>write $SYSTEM.Util.UTCtoLocalWithZTIMEZONE($ZTIMESTAMP) 66263,48361.382728 USER>write $ZTIMESTAMP 66263,15968.3579578 USER> USER>write $ZDATETIME($SYSTEM.Util.UTCtoLocalWithZTIMEZONE($ZTIMESTAMP),3) 2022-06-03 13:26:26 USER>write $ZDATETIME($ZTIMESTAMP,3) 2022-06-03 04:26:34 USER>
Hi Rochdi, Try this Link
look at the $zdate ?
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
Perhaps this will help you:
https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9