EssentialsDateTime.Subtract method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
Subtract(DateTime)
Subtracts the specified date and time from this instance.
public TimeSpan Subtract(DateTime value)
Parameters
value
DateTime
The date and time value to subtract.
Returns
A time interval that is equal to the date and time represented by this instance minus the date and time represented by value.
Subtract(EssentialsDateTime)
Subtracts the specified date and time from this instance.
public TimeSpan Subtract(EssentialsDateTime value)
Parameters
value
EssentialsDateTime
The date and time value to subtract.
Returns
A time interval that is equal to the date and time represented by this instance minus the date and time represented by value.
Subtract(TimeSpan)
Subtracts the specified duration from this instance.
public EssentialsDateTime Subtract(TimeSpan value)
Parameters
value
TimeSpan
The time interval to subtract.
Returns
An object that is equal to the date and time represented by this instance minus the time interval represented by value.
Exceptions
The resulting EssentialsDateTime is less
than System.DateTime.MinValue
or greater than System.DateTime.MaxValue
.