operator-()

DateTimeOffset::operator-(TimeSpan) const method

Returns a new instance of the DateTimeOffset class representing the date and time value which is the result of subtraction of the specified time span from the value represented by the current object.

DateTimeOffset System::DateTimeOffset::operator-(TimeSpan value) const

Arguments

ParameterTypeDescription
valueTimeSpanA time interval to subtract

Return Value

A new instance of the DateTimeOffset class representing the date and time value which is the result of subtraction of value from the value represented by the current object.

DateTimeOffset::operator-(const DateTimeOffset&) const method

Returns an instance of TimeSpan class that represents the time interval between the date and time values represented by the current and the specified objects.

TimeSpan System::DateTimeOffset::operator-(const DateTimeOffset &other) const

Arguments

ParameterTypeDescription
otherconst DateTimeOffset&An instance of DateTime class that marks one end of the interval to be calculated

Return Value

An instance of TimeSpan class representing the time interval between the date and time values represented by the current object and other.

See Also