conds.
>>
>> This code returns different values between versions:
>>
>> C_TIME($hh)
>> C_OBJECT($o)
>> $hh:=Current time
>> OB SET($o;"time";$hh)
>> ALERT("$hh:"+String($hh;HH MM AM PM)+", $o:"+String(T
, in
> how time is stored in an object property. In V16 it is stored in
> milliseconds, but in V17.0 it is stored in seconds.
>
> This code returns different values between versions:
>
> C_TIME($hh)
> C_OBJECT($o)
> $hh:=Current time
> OB SET($o;"time";$hh)
> AL
Miyako,
I can confirm that there is a difference between V16.3 and V17.0 Beta, in how
time is stored in an object property. In V16 it is stored in milliseconds, but
in V17.0 it is stored in seconds.
This code returns different values between versions:
C_TIME($hh)
C_OBJECT($o)
$hh:=Current
is that different in V16 and V17?
because in the code I posted I get the same result, but I am not dividing the
time value by 1000!!
> On Apr 16, 2018, at 10:59 PM, Keisuke Miyako via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
>
> time is stored in milliseconds, not seconds.
>
> you have to
>
time is stored in milliseconds, not seconds.
you have to
$oMyObject:=New object("reporttime";?14:43:01?)
$t:=String(Time($oMyObject.reporttime/1000);HH MM AM PM)
...or
$t:=String(OB Get($oMyObject;"reporttime";Is time);HH MM AM PM)
> 2018/04/17 10:02、John Baughman via 4D_Tech
What version of 4D?
The code below, in V17.0 Beta works fine here:
C_TIME($hh)
C_OBJECT($o)
$hh:=Current time
$o:=New object("time";$hh)
ALERT("$hh:"+String($hh;HH MM AM PM)+”, $o.time:"+String(time($o.time);HH MM
AM PM))
I get the exact same value.
cheers,
julio
&g
If I do...
$oMyObject:=New Object(reporttime;t14:43:01t)
How do I get the time back out as “2:43 PM”
I thought this worked but It does not return the correct time...
String(Time($oMyObject.reporttime);HH MM AM PM)
I am getting back “4:56 AM”
Thanks,
John
Sent from my iPad
John Baughman
7 matches
Mail list logo