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 PM, John Baughman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > 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 -- Julio Carneiro jjfo...@gmail.com ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************