lundi 29 août 2016

DateTime minus milliseconds

Although I found a few examples I couldnt find an example of deducting milliseconds from a datetime.

Anyway I am processing some server log files that store a log entry with a datetime with milliseconds as a string eg "2016-07-26T15:31:57,619".

The log also records the elapsed time in milliseconds of the transaction (ie how long the transaction took to process).

I needed to work out when the transaction started (ie log time minus the elapsed time).

Below is the sub I wrote, it returns a...

DateTime minus milliseconds

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2c5u9cT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire