ntp_dart 1.3.0 copy "ntp_dart: ^1.3.0" to clipboard
ntp_dart: ^1.3.0 copied to clipboard

A lightweight, cross-platform NTP client for Dart & Flutter. Fetches highly accurate time via native UDP and Web HTTP fallbacks with microsecond precision and secure caching.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add ntp_dart

With Flutter:

 $ flutter pub add ntp_dart

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  ntp_dart: ^1.3.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:ntp_dart/ntp_dart.dart';
6
likes
160
points
1.4k
downloads

Documentation

API reference

Publisher

verified publisherenzodesimone.dev

Weekly Downloads

A lightweight, cross-platform NTP client for Dart & Flutter. Fetches highly accurate time via native UDP and Web HTTP fallbacks with microsecond precision and secure caching.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, intl

More

Packages that depend on ntp_dart