Noda Time
ForOffset Method (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
static DateTimeZone^ ForOffset(
	Offset offset
offset (Offset)
The offset for the returned time zone
Return Value
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)