Class DateTimeZoneProviderExtensions
Extensions for IDateTimeZoneProvider
Since 2.0.x
Availability net6.0, netstandard2.0
Inheritance
Object
DateTimeZoneProviderExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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 net6.0, 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. |