TomlTimeZoneOffset.localAtInstant constructor
TomlTimeZoneOffset.localAtInstant(
- DateTime instant
Creates a time-zone offset for the local time-zone at the given instant
.
Due to daylight-savings the local time zone of a country can change.
Implementation
factory TomlTimeZoneOffset.localAtInstant(DateTime instant) =>
TomlTimeZoneOffset.fromDuration(instant.toLocal().timeZoneOffset);