Converting from UTC
Hi Guy,
is there like a utility or a function that convert from UTC to Locale time?
Thanks
Product version: Ensemble 2014.1
Discussion (4)3
Comments
You can convert with $SYSTEM.Util.UTCtoLocalWithZTIMEZONE().
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.cl…
Perhaps this will help you:
https://community.intersystems.com/post/handling-date-and-time-operations-cach%C3%A9