Crate nippy[−][src]
Example
Shows how to use the ntp library to fetch the current time according to pool ntp server
extern crate nippy; #[async_std::main] async fn main() { println!("{:?}", nippy::get_unix_ntp_time().await.unwrap()); }
Modules
protocol | Types and constants that precisely match the specification. |
Structs
Instant | Describes an instant relative to the |
Constants
EPOCH_DELTA | The number of seconds from 1st January 1900 UTC to the start of the Unix epoch. |
Functions
get_unix_ntp_time | |
request | Send an async request to an ntp server with a hardcoded 5 second timeout. |