Beispiel #1
0
 /// <summary>
 /// Creates a <see cref="DateTimeZoneGenerator"/> using the given <see cref="IDateTimeZoneProvider"/>.
 /// </summary>
 /// <param name="timeZoneProvider">A time zone provider. If <c>null</c>, it defaults to the time zone provider from <see cref="DateTimeZoneProviderFactory.Create"/>.</param>
 public DateTimeZoneGenerator(IDateTimeZoneProvider timeZoneProvider = null)
 {
     TimeZoneProvider = timeZoneProvider ?? DateTimeZoneProviderFactory.Create();
 }
 private static NodaTimeText.ZonedDateTimePattern CreateZonedDateTimePattern(string patternText) =>
 NodaTimeText.ZonedDateTimePattern.CreateWithInvariantCulture(
     patternText,
     DateTimeZoneProviderFactory.Create()
     );