Assembly: mscorlib (in mscorlib.dll)
- A specific number of milliseconds. Note that the number in the val parameter can be either positive or negative, and it can express partial milliseconds as well as whole milliseconds.
This method does not change the value of the current DateTime object; rather, it returns a new DateTime object.
The fractional part of a millisecond is represented by the fractional part of the val parameter (that is, anything to the right of the decimal point). For example, 4.5 is equivalent to 4 milliseconds and 5,000 ticks, where one millisecond equals 10,000 ticks. The number in the val parameter is rounded to the nearest tick.