Class DateTimeZoneProviderExtensions
Extensions for IDateTimeZoneProvider
Since 2.0.x
Availability net6.0, net8.0, netstandard2.0
Inherited Members
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, net8.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. |