Noda Time
ForOffset Method (offset)
NamespacesNodaTimeDateTimeZoneForOffset(Offset)
Returns a fixed time zone with the given offset.
Declaration Syntax
C#Visual BasicVisual C++
public static DateTimeZone ForOffset(
	Offset offset
)
Public Shared Function ForOffset ( _
	offset As Offset _
) As DateTimeZone
public:
static DateTimeZone^ ForOffset(
	Offset offset
)
Parameters
offset (Offset)
The offset for the returned time zone
Return Value
A fixed time zone with the given offset.
Remarks

The returned time zone will have an ID of "UTC" if the offset is zero, or "UTC+/-Offset" otherwise. In the former case, the returned instance will be equal to Utc.

Note also that this method is not required to return the same DateTimeZone instance for successive requests for the same offset; however, all instances returned for a given offset will compare as equal.

Assembly: NodaTime (Module: NodaTime) Version: 1.0.0.0 (1.0.1)