MillSecond Procedure |
ATEasy 2024 (v13) |
Returns the current or specified date/time milliseconds (0.0-999.x).
[ lSecond = ] MillSecond ( [ dt ] )
The Second procedure syntax has the following parts:
Name |
Type |
Description |
dMilliSecond |
Double |
Return value: milliseconds, between 0 and 999.99999999 |
dt |
[Val] DateTime |
Date time if given |
If date time is not specified, current date time is used.
The return number is typically accurate to 100nSecond (100e-6).
Since DateTime 1.0 is one day, millisecond is calculated by multiplying the datetime (dt) value with 86400000 (24hr * 60min * 60sec * 1000mSec) and calulating the reminder of 1000 ((dt*86400000 ) mod 1000).
dt=Now()
print Second(dt);".";Int(MillSeconds(dt));" Seconds" ! prints current second "17.234 Seconds"