[This is preliminary documentation and is subject to change.]
Returns an OffsetDateTime for this local date/time with the given offset.

C# | Visual Basic | Visual C++ |
public OffsetDateTime WithOffset( Offset offset )
Public Function WithOffset ( _ offset As Offset _ ) As OffsetDateTime
public: OffsetDateTime WithOffset( Offset offset )

- offset (Offset)
- The offset to apply.

The result of this local date/time offset by the given amount.

This method is purely a convenient alternative to calling the OffsetDateTime constructor directly.
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)