Actually I just realised this may be a timezone issue rather than a precision 

I’ve done it this way:

******* 1. Get UTC Time *******

$P_timeString:=String(Current date(*);ISO date GMT;Current time(*))

$P_timeString:=Replace string($P_timeString;"Z";””). <— Prevent it from 
reverting back to local time


********2. convert to Posix *****


$P_countDAYS:=($P_date-$P_baseDATE)  //     Gets the whole number od days 
$P_countSECONDS:=($P_time +0)



> On 19 Feb 2019, at 23:25, Peter Jakobsson via 4D_Tech <> 
> wrote:
> The problem is that if I convert Current Date and Current Time to 
> milliseconds there’s a precision error of up to a second and the API server’s 
> I’m using think I’m out of sync

4D Internet Users Group (4D iNUG)

Reply via email to