OB Get is simply doing the reverse of OB SET, which sets milliseconds for time.

If you want to convert an ISO GMT timestamp to 4D local date or time you can 
use the Date and Time commands, which were upgraded in v14:

$timestamp:="2017-05-25T23:00:00.294Z"  //next day in Japan

$date:=Date($timestamp)  //returns the local date
$time:=Time($timestamp)  //returns the local time

---

alternatively...

C_TIME($time)
XML DECODE($timestamp;$time)  //returns the local time

$param85:=Get database parameter(JSON use local time)
SET DATABASE PARAMETER(JSON use local time;1)

$date:=JSON Parse(Char(Double quote)+$timestamp+Char(Double quote);Is date) 
//returns the local date

SET DATABASE PARAMETER(JSON use local time;$param85)



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to