1 stable release

2.0.0 Mar 22, 2021
1.0.1 Mar 22, 2021

#447 in Date and time

Download history 26/week @ 2024-12-01 64/week @ 2024-12-08 43/week @ 2024-12-15 7/week @ 2024-12-29 35/week @ 2025-01-05 35/week @ 2025-01-12 27/week @ 2025-01-19 24/week @ 2025-01-26 51/week @ 2025-02-02 90/week @ 2025-02-09 42/week @ 2025-02-16 15/week @ 2025-02-23 22/week @ 2025-03-02 29/week @ 2025-03-09 45/week @ 2025-03-16

112 downloads per month
Used in 5 crates

MIT license

41KB
568 lines

Nippy   Build Status Latest Version Docs

Purpose

The purpose of this library is to be your async ntp utility.

This is a fork of the crate ntp that adds support for async-std, tokio, and Rust 2018.

Install

async-std


nippy = "2"

Tokio


nippy = { version="2", default-features=false, features=["tokio-runtime"] }

Use


nippy::get_unix_ntp_time().await.unwrap();

This will return an i64 that is the unix ntp timestamp from pool ntp server.

Dependencies

~5–15MB
~213K SLoC