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
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
> 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:
>
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_
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
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
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
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
> 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?
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
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:
>
> 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
> 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
$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
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
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
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
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
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
19 matches
Mail list logo