Subtracts a specified time interval from the current DateTimeOffset object.
An object that is equal to the date and time represented by the current DateTimeOffset object, minus the time interval represented by value.
You can use the DateTimeOffset.Subtract(TimeSpan) method to subtract more than one kind of time interval (days, hours, minutes, seconds, or milliseconds) in a single operation. Its behavior is identical to the DateTimeOffset.op_Subtraction(DateTimeOffset, TimeSpan) method, which defines the subtraction operator. The DateTimeOffset structure also supports specialized addition methods (such as DateTimeOffset.AddDays(double), DateTimeOffset.AddHours(double), and DateTimeOffset.AddMinutes(double)) that allow you to perform subtraction by assigning a negative value to the method parameter.
This method returns a new DateTimeOffset object. It does not modify the value of the current object by adding timeSpan to its date and time.
The DateTimeOffset.Subtract(TimeSpan) method does not affect the value of the DateTimeOffset object's DateTimeOffset.Offset property. The returned DateTimeOffset object has the same offset as the original object.
Because the current DateTimeOffset object does not represent the date and time in a specific time zone, the DateTimeOffset.Subtract(TimeSpan) method does not consider a particular time zone's adjustment rules when it performs the subtraction.