Noda Time
Show / Hide Table of Contents

Class DateTimeZoneProviderExtensions

Extensions for IDateTimeZoneProvider
Since 2.0.x
Availability net45, netstandard1.3, netstandard2.0
Inheritance
Object
DateTimeZoneProviderExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class DateTimeZoneProviderExtensions

Methods

GetAllZones(IDateTimeZoneProvider)

Returns a lazily-evaluated sequence of time zones from the specified provider, in the same order in which the IDs are returned by the provider.
Since 2.0.x
Availability net45, netstandard1.3, netstandard2.0
Declaration
public static IEnumerable<DateTimeZone> GetAllZones(this IDateTimeZoneProvider provider)
Parameters
Type Name Description
IDateTimeZoneProvider provider The provider to fetch time zones from.
Returns
Type Description
IEnumerable<DateTimeZone> All the time zones from the provider. (The value returned is never null.)
Exceptions
Type Condition
ArgumentNullException provider is null.
In this article
Back to top Generated by DocFX