TimeZoneDefinition.withTimeZone constructor

TimeZoneDefinition.withTimeZone(
  1. TimeZone timeZoneInfo
)
Initializes a new instance of the The time zone info used to initialize this definition.

Implementation

TimeZoneDefinition.withTimeZone(tz.TimeZone timeZoneInfo) {
  _InitializeFromRules(
    timeZoneInfo.abbreviation,
    timeZoneInfo.abbreviation,
    TimeZoneRuleSet(timeZoneInfo.offset, const []),
  );
}