|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: 126.96.36.199 (1.2.0)