Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributentp

Fetch accurate current time from an NTP server as a DateTime object.

pub.devRemove
timezone

Time zone databases and time zone aware DateTime class in Dart.

pub.devRemove
ScoresHealth5094 (best)
Maintenance093 (best)
Quality96100 (best)
Popularity8494 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)198k5.3M (best)
Likes261597 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars54 (best)53
MaintenanceLatest release2.0.0, 6 years ago0.11.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors970 (best)
Publishersquare-pear.comtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)2
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Pure Dart implementation works everywhere
  • Null‑safe and lightweight
  • Easy to use API
  • Includes comprehensive IANA time zone database variants (default, all, 10y).
  • TZDateTime implements the core DateTime interface for seamless drop-in usage.
Weaknesses
  • Only a single default NTP server (time.google.com)
  • No built‑in caching or advanced NTP features
  • No automatic retry or fallback logic
  • Getting the current timezone of the device is platform-dependent and not a goal of the package.
  • Standalone environment initialization likely will not work in a Flutter environment.
WarningsNoneNone
ntp vs timezone: which Flutter package should you use? | pubscout