Hi Randy,
Yes i've need of millesconds these logs is for check the instruments
communication.
Thanks
Ferdinando
Il 08/11/20 14:57, Randy Kaempen ha scritto:
Fernando,
On Nov 7, 2020, at 11:44 AM, stardata.info <http://stardata.info> via
4D_Tech <[email protected] <mailto:[email protected]>> 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 just log
seconds, which would be much smaller. The standard Internet timestamp
is the number of seconds since 1/1/1970. Of course, if your dates
don’t go back that far, you could use a more recent date and get
smaller numbers.
For example:
$TimeStamp:=((current date-!1/1/2000!)*86400)+current time
That uses a start date of 1/1/2000.
Randy Kaempen
Intellex Corporation
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************