getting milliseconds between two dates

38 views
Skip to first unread message

AJ Mercer

unread,
Feb 9, 2016, 9:08:46 PM2/9/16
to lu...@googlegroups.com
Anyone know how to get number of milliseconds between two DateTime objects?

I can get seconds, but not milliseconds using dateDiff()


--

AJ Mercer

unread,
Feb 9, 2016, 9:23:03 PM2/9/16
to lu...@googlegroups.com
looks like GetTickCount() is what I am after

Michael Offner

unread,
Feb 10, 2016, 1:23:58 AM2/10/16
to lucee

You are right that is not possible with datediff, could you raise a feature request in jira for this? What you can do is:
diff=(milliseconds (date1)-milliseconds(date2))+datediff("s",date1,date2); // not tested

Micha

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAPURtC07LKF83a8xObB68rtbT6--P8A0h2QM7J34ZeT7SYLUzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

AJ Mercer

unread,
Feb 10, 2016, 2:03:45 AM2/10/16
to lu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages