Returns the DateTime resulting from adding a fractional number of minutes to the specified DateTime.
[Visual Basic] Overridable Public Function AddMinutes( _ ByVal time As DateTime, _ ByVal minutes As Integer _ ) As DateTime [C#] public virtual DateTime AddMinutes( DateTime time, int minutes ); [C++] public: virtual DateTime AddMinutes( DateTime time, int minutes ); [JScript] public function AddMinutes( time : DateTime, minutes : int ) : DateTime;
The DateTime resulting from adding a fractional number of minutes to the specified DateTime.
Exception Type | Condition |
---|---|
ArgumentException | is thrown if the resulting DateTime is outside the supported range. |
The result is computed by rounding the fractional number of minutes specified by minutes to the nearest millisecond, and adding that interval to the specified DateTime. The minutes argument is permitted to be negative.
Calendar Class | Calendar Members | System.Globalization Namespace