ntp 2.0.0 copy "ntp: ^2.0.0" to clipboard
ntp: ^2.0.0 copied to clipboard

Fetch accurate time or current DateTime object from (NTP) Network Time Protocol server.

[2.0.0] - 03.03.2021. #

  • Migrate to null-safety
  • Use default DNS resolver

[1.0.8] - 19.01.2021. #

  • Change DNS resolver to DoH
  • Change default lookupAddress to time.google.com
  • You can change lookupAddress on NTP.now()

[1.0.7] - 02.07.2020. #

  • Support for IPv6 and IPv4 addresses
  • Fix timing on first getNtpOffset call

[1.0.6] - 13.01.2019. #

[1.0.5] - 13.01.2019. #

  • Move test to example (since it uses Flutter dependency)
  • Update package

[1.0.4] - 12.07.2019. #

  • Fix now() function

[1.0.3] - 25.03.2019. #

  • Fix returning future, may fix #1

[1.0.2] - 22.10.2018. #

  • Updated description and code cleanup

[1.0.1] - 22.07.2018. #

  • Added example
  • Updated README.md

[1.0.0] - 18.07.2018. #

  • Methods in NTP are now static.

  • Added now() for returning current DateTime object with calculated NTP offset

  • getNtpTime was renamed to getNtpOffset (since it is returning int offset in milliseconds)

[0.0.1] - 16.04.2018. #

  • Get NTP clock offset
213
likes
130
pub points
98%
popularity

Publisher

verified publishersquare-pear.com

Fetch accurate time or current DateTime object from (NTP) Network Time Protocol server.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on ntp