Skip to content

Dart package for getting UTC time offsets for timezones

License

Notifications You must be signed in to change notification settings

odam1/timezone_utc_offset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)}'");
  }
}

About

Dart package for getting UTC time offsets for timezones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages