Code: Select all
$start = now();
.
.
.
status datediff($start,,"ms")$start_date = now("yyyy-mm-dd hh:nn:ss.fffffff"), copied from the now() section of the help file.I started to get sensible numbers after that, but once I got a negative one, -49
Then I measured the second script and all numbers became under zero.
Maybe i invented a time travelling script, which goes back in time, and finishes even before started.
Does anybody have an idea why this is happening? Could it be a bug, or did I use incorrect format?
Edit: I tried to change the datediff to
Code: Select all
status datediff($start_date,now("yyyy-mm-dd hh:nn:ss.fffffff"),"ms");I tried to use this one:
Code: Select all
status datediff($start_date,now("yyyy-mm-dd hh:nn:ss.ms"),"ms");Code: Select all
now("yyyy-mm-dd hh:nn:ss.ms")Now I am super confused.
Edit2: maybe the milllisecond fomat is not the ms but this:
now("yyyy-mm-dd hh:nn:ss.fff"). And ms can be used only as an interval, so maybe the solution is something like this:
Code: Select all
$start_date = now("yyyy-mm-dd hh:nn:ss.fff");
.
status datediff($start_date,now("yyyy-mm-dd hh:nn:ss.fff"),"ms");
XYplorer Beta Club