timezone 0.0.2 copy "timezone: ^0.0.2" to clipboard
timezone: ^0.0.2 copied to clipboard

outdated

Library to convert DateTimes between Time Zones.

TimeZone #

Library to convert dates between TimeZones.

The data for Time Zones are from [http://www.iana.org/time-zones](the IANA Time Zone Database).

Usage Example #

import 'package:timezone/browser.dart' as tz;

tz.initializeTimeZone()
.then(() {

  final now = new DateTime.now().millisecondsSinceEpoch;
  final nowEastern = tz.translateTime(now, 'US/Eastern');

});

Updating Time Zone database #

$ pub run tool/get -s 2014h
383
likes
0
pub points
99%
popularity

Publisher

unverified uploader

Library to convert DateTimes between Time Zones.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection

More

Packages that depend on timezone