Noda Time
WithOffset Method (offset)
NamespacesNodaTimeLocalDateTimeWithOffset(Offset)

[This is preliminary documentation and is subject to change.]

Returns an OffsetDateTime for this local date/time with the given offset.
Declaration Syntax
C#Visual BasicVisual C++
public OffsetDateTime WithOffset(
	Offset offset
)
Public Function WithOffset ( _
	offset As Offset _
) As OffsetDateTime
public:
OffsetDateTime WithOffset(
	Offset offset
)
Parameters
offset (Offset)
The offset to apply.
Return Value
The result of this local date/time offset by the given amount.
Remarks
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)