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

Time zone database and time zone aware DateTime.

0.9.2 #

  • Time zone database updated to 2023c. For your convenience here are the announcements for 2023a, 2023b, 2023c.

0.9.1 #

  • Time zone database updated to 2022g. For your convenience here are the announcements for 2022d, 2022e, 2022f, 2022g.

0.9.0 #

  • Time zone database updated to 2022c. For your convenience here are the announcements for 2022a, 2022b, 2022c.
  • Removed named database files in lib/data (for example, lib/data/2021e.tzf). The only supported database files are all now named latest_*.

0.8.1 #

  • Time zone database updated to 2021e. For your convenience here are the announcements for 2021b, 2021c, 2021d, 2021e.
  • Fixed encoding script to not skip a few missing time zones.

0.8.0 #

  • Time zone database updated to 2021a. For your convenience here is the announcement for 2021a.
  • Time zone databases encoded with UTF-16 instead of base64.
  • Breaking change: Remove tool/encode.dart in favor of tool/encode_dart.dart.

0.7.0 #

  • Breaking change: Change some of TimeZone's constructor parameters to be named instead of positional.
  • Breaking change: Rename TimeZone.abbr to TimeZone.abbreviation.
  • Deprecate LocationDatabase.isEmpty in favor of LocationDatabase.isInitialized.
  • Removed new usage from examples and fixed a typo in the TZDateTime.from example.
  • Migrate to Dart's null safety language feature.

0.6.1 #

  • Updated the get script (now encode_tzf) to work with a zoneinfo directory (as created by the zic tool) as input. Fetching and compiling this directory is now done by a bash script (refresh.sh) using standard tools.

    This allows pointing the tool at a custom zoneinfo directory.

0.6.0 #

  • Stopping internal versioning of time zone data. Only the latest data will be included, as there is no use case for using an outdated version.
  • Renaming the _2015_2025 database to _10y for it to have a stable name. In the past latest_2010-2020.tzf had to be renamed to latest_2015-2025.tzf.

0.5.9 #

  • Time zone database updated to 2020d. For your convenience here is the announcement for 2020d.

0.5.8 #

  • Time zone database updated to 2020b. For your convenience here is the announcement for 2020b.

0.5.7 #

  • Time zone database updated to 2020a. For your convenience here is the announcement for 2020a.
  • Earlier null checking on some TZDateTime constructor arguments.
  • Many internal changes; should not affect API.

0.5.6 #

  • Time zone database updated to 2019c. For your convenience here is the announcement for 2019c.
  • Dart-importable databases made available in lib/data. README.md has more details.

0.5.5 #

  • Time zone database updated to 2019b. For your convenience here is the announcement for 2019b.
  • Convenience database symlinks added for convenience at
    • lib/data/latest.tzf
    • lib/data/latest_2015-2025.tzf
    • lib/data/latest_all.tzf

0.5.4 #

  • TZDateTime.utc is accessible before time zone database is initialized (thanks @jsmarr).
  • Fix dropping microseconds when creating TZDateTime (thanks @jsmarr).

0.5.3 #

  • Time zone database updated to 2019a. For your convenience here is the announcement for 2019a.

0.5.2 #

  • Time zone database updated to 2018i. For your convenience here are the announcements for 2018h and 2018i.

0.5.1 #

  • Time zone database updated to 2018g. For your convenience here are the announcements for 2018d, 2018e, 2018f, and 2018g.

0.5.0 #

  • Support a package-directory-free environment. In Dart 1.19, timezone is now compatible with pub get --no-packages-dir.
  • Breaking: Remove initializeTimeZoneSync method; it is incompatible with the async method for resolving package URIs.
  • Fix all strong mode errors (thanks @har79).
  • Add microsecond support (thanks @har79).
  • Improve interaction between TZDateTime and native DateTime (thanks @har79).
  • Fix TimeZone's == (thanks @har79).
  • Many new dartdoc comments (thanks @har79).
  • Fix for calling new TZDateTime.from() with a non-UTC DateTime object (thanks @tomaine2002).
  • Support Dart 2.
  • Time zone database updated to 2018c. For your convenience here are the announcements for 2015c, 2015d, 2015e, 2015f, 2015g, 2016a, 2016b, 2016c, 2016d, 2016e, 2016f, 2016g, 2016h, 2016i, 2017a, 2017b, 2017c, and 2018c.

0.4.3 #

  • Fix Dart 1.14 incompatibility further.

0.4.2 #

  • Bad pub publish. Ignore.

0.4.1 #

  • Fix Dart 1.14 incompatibility with packageRoot returning null.

0.4.0 #

  • Remove usage of tuple package.
  • Upgrade unittest package to test.
  • Fix database URL for "latest" database.
  • Add tool/dartfmt for formatting source.

0.3.1 #

  • generate_data_subset script is removed. It will be available as a separate package.

0.3.0 #

  • Time zone database updated to 2015b.
  • Removed local location detection heuristics (didn't worked properly). Local location is initialized with UTC location by default, use setLocalLocation to change local location.
  • Time zone database format is changed; data is aligned.

0.2.5 #

  • Fixed bug with String formatting (invalid offsets for minutes).

0.2.4 #

  • Fixed bug with Calendar-type constructor.

0.2.3 #

  • Added initializeTimeZoneSync function for standalone environments.
  • Fixed bug with script path on Windows.

0.2.2 #

  • TimeZone database updated to "2014j".
  • "args" and "path" moved from dev dependencies to dependencies.

0.2.1 #

  • tzfile library renamed to tzdata.
  • Added zone1970.tab parser to tzdata library.
  • Removed package:collection dependency.
374
likes
100
pub points
99%
popularity

Publisher

unverified uploader

Time zone database and time zone aware DateTime.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

path

More

Packages that depend on timezone