Returns the DateTime result from adding this instance to a fractional number of seconds.
[Visual Basic] Public Function AddSeconds( _ ByVal value As Double _ ) As DateTime [C#] public DateTime AddSeconds( double value ); [C++] public: DateTime AddSeconds( double value ); [JScript] public function AddSeconds( value : double ) : DateTime;
The DateTime results from adding a fractional number of seconds to this instance.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | If the resulting DateTime is outside the supported range. |
The AddSeconds method is computed by rounding the fractional number of seconds specified by value to the nearest millisecond; that interval is added to this instance of DateTime.
The value parameter argument can be negative.
DateTime Structure | DateTime Members | System Namespace | Double | Second