DateTime.AddMicroseconds(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new DateTime that adds the specified number of microseconds to the value of this instance.
public:
DateTime AddMicroseconds(double value);
public DateTime AddMicroseconds (double value);
member this.AddMicroseconds : double -> DateTime
Public Function AddMicroseconds (value As Double) As DateTime
Parameters
- value
- Double
A number of whole and fractional microseconds.
The value
parameter can be negative or positive.
Note that this value is rounded to the nearest integer.
Returns
An object whose value is the sum of the date and time represented by this instance and the number of microseconds represented by value
.
Exceptions
Remarks
This method does not change the value of this DateTime. Instead, it returns a new DateTime whose value is the result of this operation.
The fractional part of value is the fractional part of a microsecond. For example, 4.5 is equivalent to 4 microseconds and 50 ticks, where one microsecond = 10 ticks.
The value parameter is rounded to the nearest integer.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om