Re: Milliseconds into the log

2022-03-31 Thread stardata.info via 4D_Tech
Sorry, i can use TIMESTAMP command Thanks Ferdinando Il 31/03/2022 15:27, stardata.info ha scritto: Hi All, I use 4D V16 on windows. I have a method that write the logs. Actually i write only date and time, an i need to add even the milliseconds. Someone have a suggetions? Thanks

Milliseconds into the log

2022-03-31 Thread stardata.info via 4D_Tech
Hi All, I use 4D V16 on windows. I have a method that write the logs. Actually i write only date and time, an i need to add even the milliseconds. Someone have a suggetions? Thanks Ferdinando ** 4D Internet Users Group

Re: MILLISECONDS

2020-11-09 Thread Arnaud init5 imap via 4D_Tech
> Le 8 nov. 2020 à 18:34, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com > <mailto:4d_tech@lists.4d.com>> a écrit : > > Ferdinando, >> Yes i've need of millesconds these logs is for check the instruments > communication. > > Try this: >

Re: MILLISECONDS

2020-11-08 Thread Kirk Brooks via 4D_Tech
Ferdinando, > Yes i've need of millesconds these logs is for check the instruments communication. Try this: $ms:=Milliseconds // communicate with instruments $ms:=Milliseconds - $ms $ms is now the delta of when you started. I'm sure you have thought about these things but _where_

Re: MILLISECONDS

2020-11-08 Thread stardata.info via 4D_Tech
ilto:4d_tech@lists.4d.com>> wrote: I work with 4D V16 and V18 on windows. I've need to insert milliseconds into my log messages. I thik to use the command MILLISECONDS but the number is very great. Someone know a better mode? Do you need the accuracy of milliseconds?  If not, you could

Re: MILLISECONDS

2020-11-07 Thread Keisuke Miyako via 4D_Tech
correction: LOG EVENT(Into 4D diagnostic log;"some message") > LOG EVENT(Into 4D commands log;"some message") ** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html

Re: MILLISECONDS

2020-11-07 Thread Keisuke Miyako via 4D_Tech
It depends on what you want to measure and with what level of precision. computer uptime TIckcount: ticks Milliseconds: milliseconds Get system info (v18) uptime: seconds application uptime Get application info (v18) uptime: seconds time TImestamp (v17): milliseconds --- if the unit

MILLISECONDS

2020-11-07 Thread stardata.info via 4D_Tech
Hi All, I work with 4D V16 and V18 on windows. I've need to insert milliseconds into my log messages. I thik to use the command MILLISECONDS but the number is very great. Someone know a better mode? Thanks Ferdinando ** 4D

Re: Epoch time in milliseconds

2019-02-22 Thread Arnaud de Montard via 4D_Tech
> Le 22 févr. 2019 à 15:43, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > It seems Timestamp always returns the GMT time zone, correct? Yes: "Timestamp returns the current UTC time…". Good thing BTW… > So to get a localized timestamp one would need to adjust the result?

Re: Epoch time in milliseconds

2019-02-22 Thread Alan Tilson via 4D_Tech
Hello Miyako, It seems Timestamp always returns the GMT time zone, correct? So to get a localized timestamp one would need to adjust the result? Thanks! Alan On Tue, Feb 19, 2019 at 7:32 PM Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > $P_timeString:=String(Current date(*);ISO

Re: Epoch time in milliseconds

2019-02-20 Thread Peter Jakobsson via 4D_Tech
Thanks Arnaud ! Very useful indeed. Bruno has been very productive in this area. > On 20 Feb 2019, at 22:19, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > You may be interested by 2 methods from Bruno Legay about epoch in the code > sharing zone: >

Re: Epoch time in milliseconds

2019-02-20 Thread Arnaud de Montard via 4D_Tech
> Le 19 févr. 2019 à 23:51, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > a écrit : > > > Actually I just realised this may be a timezone issue rather than a precision > issue. > > I’ve done it this way: [...] You may be interested by 2 methods from Bruno Legay about epoch in the

Re: Epoch time in milliseconds

2019-02-20 Thread Peter Jakobsson via 4D_Tech
> On 20 Feb 2019, at 01:29, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > $P_timeString:=String(Current date(*);ISO date GMT;Current time(*)) > > does this not invoke 2 calls to the server in C/S mode? Good point Miyako. (I stopped worrying about optimising for performance

Re: Epoch time in milliseconds

2019-02-19 Thread Keisuke Miyako via 4D_Tech
$P_timeString:=String(Current date(*);ISO date GMT;Current time(*)) does this not invoke 2 calls to the server in C/S mode? would rather use Timestamp https://blog.4d.com/timestamp-is-now-available/ or else an "execute on server" rapper. otherwise, I compared with a plugin call

Re: Epoch time in milliseconds

2019-02-19 Thread Peter Jakobsson via 4D_Tech
untDAYS*86400)+$P_countSECONDS) $0:=Int($P_posixTIME)*1000 > On 19 Feb 2019, at 23:25, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > 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 t

Epoch time in milliseconds

2019-02-19 Thread Peter Jakobsson via 4D_Tech
Hi Does anyone have an idea how to get the epoch time in milliseconds in native 4D ? 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. Is it another job for PHP

Re: Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
On Wed, Sep 20, 2017 at 10:03 AM, Christian Sakowski < christian.sakow...@heubach-media.de> wrote: > Why not using the command „Timestamp“? > It returns exactly what you need: > > Because I did not know this command exists. Thanks for pointing out. I look it is available from 16R2, project is not

Re: Time stamp with milliseconds

2017-09-20 Thread Christian Sakowski via 4D_Tech
ieb Peter Bozek via 4D_Tech <4d_tech@lists.4d.com>: > > I would like to implement my own event logging with millisecond resolution > - like 2017-05-12 20:52:50,147 to use for sorting of events. There is > Milliseconds command, but thus provide information I need. > > If it is

Time stamp with milliseconds

2017-09-20 Thread Peter Bozek via 4D_Tech
I would like to implement my own event logging with millisecond resolution - like 2017-05-12 20:52:50,147 to use for sorting of events. There is Milliseconds command, but thus provide information I need. If it is not possible, did somebody tested single alternative like incrementing global