Adds a specified time interval to a DateTimeOffset object.
| C# | Visual Basic |
public DateTimeOffset Add( TimeSpan timeSpan )
Public Function Add ( _ timeSpan As TimeSpan _ ) As DateTimeOffset
- timeSpan (TimeSpan)
- A TimeSpan object that represents a positive or a negative time interval.
A DateTimeOffset object whose value is the sum of the date and time represented by the current DateTimeOffset object and the time interval represented by timeSpan.