Thanks. To avoid a problem in the future when going to v17, decided to store
the time in the object already in am/pm string format instead of time. The way
it is in v17, to me, is the way it should have been in the first place.
John Baughman
Kailua, Hawaii
john...@hawaii.rr.com
> On Apr 16, 2
Julio:
IIRC, that change *is* mentioned in the docs for V17 beta.
--
Douglas von Roeder
949-336-2902
On Mon, Apr 16, 2018 at 7:28 PM, Julio Carneiro via 4D_Tech <
4d_tech@lists.4d.com> wrote:
> Miyako,
>
> I can confirm that there is a difference between V16.3 and V17.0 Beta, in
> how time is s
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 time
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 <4d_tech@lists.
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
> On Apr 16, 2018, at 10:02
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
K
7 matches
Mail list logo