EssentialsTime.Add method

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

Add(TimeSpan)

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

public EssentialsTime 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 EssentialsTime is less than System.DateTimeOffset.MinValue or greater than System.DateTimeOffset.MaxValue.