How do you create a timespan from milliseconds in powershell? -
new-timespan takes no "milliseconds" parameter, how create timespan milliseconds?
use frommilliseconds
static method of timespan
structure.
ps> [timespan]::frommilliseconds(10) days : 0 hours : 0 minutes : 0 seconds : 0 milliseconds : 10 ticks : 100000 totaldays : 1.15740740740741e-07 totalhours : 2.77777777777778e-06 totalminutes : 0.000166666666666667 totalseconds : 0.01 totalmilliseconds : 10