EssentialsDateTime.Add method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

Add(TimeSpan)

Returns a new EssentialsDateTime that adds the value of the specified TimeSpan to the value of this instance.

public EssentialsDateTime Add(TimeSpan value)

Parameters

value TimeSpan

A positive or negative time interval.

Returns

An object whose value is the sum of the date and time represented by this instance and the time interval represented by value.

Exceptions

The resulting EssentialsDateTime is less than System.DateTime.MinValue or greater than System.DateTime.MaxValue.