$ZTIMESTAMP in local time
How do you get a $ZTIMESTAMP in local time?.
I have found this solution and it works:
Set LocalTimestamp=$ZDATETIMEH($ZTIMESTAMP,-3)
Do you use any better way?
How do you get a $ZTIMESTAMP in local time?.
I have found this solution and it works:
Set LocalTimestamp=$ZDATETIMEH($ZTIMESTAMP,-3)
Do you use any better way?
Set LocalTimestamp=$now()
Just note that $NOW() doesn't adjust for Daylight Saving Time.
Thanks Alexey for your answer but as Jhon says $now doesn't adjunt for Dailyght Save Time and I need it.
Also see ##class(%UTC).NowLocal()
Thanks Vitaly