timezone_utc_offset 1.1.0 copy "timezone_utc_offset: ^1.1.0" to clipboard
timezone_utc_offset: ^1.1.0 copied to clipboard

A Dart package for getting UTC offsets for timezones. This package is platform agnostic, thus can be used on all platforms that support dart code execution.

timezone_utc_offset #

Dart package for getting UTC time offsets for timezones [fully offline]

Some data used in this package was pulled from this github project. And some data from crawling the web.

Usage #

import 'package:timezone_utc_offset/timezone_utc_offset.dart';

void main() {
  final timezones = [
    "Africa/Accra",
    "America/New_York",
    "Asia/Qatar",
    "Europe/Vatican",
    "Pacific/Fiji",
    "US/Pacific",
  ];

  for (final tz in timezones) {
    print("UTC offset of '$tz' is '${getTimezoneUTCOffset(tz)}'");
  }
}

6
likes
140
pub points
79%
popularity

Publisher

unverified uploader

A Dart package for getting UTC offsets for timezones. This package is platform agnostic, thus can be used on all platforms that support dart code execution.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on timezone_utc_offset