inTzdbSystemDefaultZone method

Future<ZonedClock> inTzdbSystemDefaultZone()

Constructs a ZonedClock from a clock (the target of the method), in the TZDB mapping for the system default time zone time zone and the ISO calendar system.

  • clock: Clock to use in the returned object.

A ZonedClock in the system default time zone (using TZDB) and the ISO calendar system, using the system clock.

  • DateTimeZoneNotFoundException: The system default time zone is not mapped by

see: DateTimeZoneProviders.Tzdb

Implementation

Future<ZonedClock> inTzdbSystemDefaultZone() async
{
  var zone = await (await DateTimeZoneProviders.tzdb).getSystemDefault();
  return ZonedClock(this, zone, CalendarSystem.iso);
}