[This is preliminary documentation and is subject to change.]
Returns a fixed time zone with the given offset.

C# | Visual Basic | Visual C++ |
public static DateTimeZone ForOffset( Offset offset )
Public Shared Function ForOffset ( _ offset As Offset _ ) As DateTimeZone
public: static DateTimeZone^ ForOffset( Offset offset )

- offset (Offset)
- The offset for the returned time zone

A fixed time zone with the given offset.

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.dll) Version: 1.2.0.0 (1.2.0)