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.

374
likes
100/ 140
pub points
99%
popularity

We analyzed this package 14 days ago, and awarded it 100 pub points (of a possible 140):

failed
Follow Dart file conventions
10 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 2 links are insecure.

README.md:4:132

  ╷
4 │ <p>The current time zone database version is <a href="https://data.iana.org/time-zones/releases/tzcode2023c.tar.gz">2023c</a>. See <a href="http://mm.icann.org/pipermail/tz-announce/2023-March/000079.html">the announcement</a> for
  │                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

0/5 points: Provide a valid CHANGELOG.md

Links in `CHANGELOG.md` should be secure. 42 links are insecure.

CHANGELOG.md:4:19

  ╷
4 │ announcements for <a href="http://mm.icann.org/pipermail/tz-announce/2023-March/000077.html">2023a</a>, <a href="http://mm.icann.org/pipermail/tz-announce/2023-March/000078.html">2023b</a>, <a href="http://mm.icann.org/pipermail/tz-announce/2023-March/000079.html">2023c</a>.</li>
  │                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

10/10 points: Use an OSI-approved license

Detected license: BSD-2-Clause.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

96 out of 125 API elements (76.8 %) have documentation comments.

Some symbols that are missing documentation: latest, latest_10y, latest_all, timezone.LocationDatabase.locations, timezone.LocationNotFoundException.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 20 issues. Showing the first 2:

INFO: The variable name '_UTC' isn't a lowerCamelCase identifier.

lib/src/env.dart:14:7

   ╷
14 │ final _UTC = Location('UTC', [minTime], [0], [TimeZone.UTC]);
   │       ^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/env.dart

INFO: The variable name 'UTC' isn't a lowerCamelCase identifier.

lib/src/env.dart:23:14

   ╷
23 │ Location get UTC => _UTC;
   │              ^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/env.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
path ^1.8.0 1.9.0 1.9.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.2, Dart 3.3.0.

Check the analysis log for details.

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