|C#||Visual Basic||Visual C++|
DateTimeZone GetZoneOrNull( string id )
Function GetZoneOrNull ( id As String ) As DateTimeZone
DateTimeZone^ GetZoneOrNull( String^ id )
- id (String)
- The time zone ID to find.
Note that this may return a DateTimeZone that has a different ID to that requested, if the ID provided is an alias.
Note also that this method is not required to return the same DateTimeZone instance for successive requests for the same ID; however, all instances returned for a given ID must compare as equal.
The fixed-offset timezones with IDs "UTC" and "UTC+/-Offset" are always available. These must return instances that are equal to those returned by ForOffset(Offset).
|ArgumentNullException||id is null.|
Assembly: NodaTime (Module: NodaTime.dll) Version: 126.96.36.199 (1.1.1)