OutputVar := MfTimeSpan.FromDays(value)
Returns a MfTimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
value
A number of days, accurate to the nearest millisecond.
Can be var containing float or any object that matches IsNumber.
Returns an instance of MfTimeSpan object that represents value.
Throws MfInvalidOperationException if not called as a static method.
Throws MfOverflowException if value is less than MinValue or greater than MaxValue.
Throws MfInvalidCastException if value cannot be cast to MfFloat.
Static Method
The value parameter is converted to milliseconds, which is converted to ticks, and that number of ticks is used to initialize the new MfTimeSpan. Therefore, value will only be considered accurate to the nearest millisecond. Note that, because of the loss of precision of the MfFloat data type, this conversion can cause an MfOverflowException for values that are near to but still in the range of either MinValue or MaxValue.
ts := MfTimeSpan.FromDays(99.256)
varStr := MfString.Format("Time Elapsed is Days:{0}, Hours:{1}, Minutes:{2}, Seconds:{3}, Milliseconds:{4}"
, ts.Days, ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds)
MsgBox, 64, Time Elapsed, %varStr%
; Time Elapsed is Days:99, Hours:6, Minutes:8, Seconds:38, Milliseconds:400