xntp 0.1.3

A ntp client lib for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# xntp
this is a simple and small ntp time client


# example
```rust
use xntp::NtpClient;
fn main(){
    let client = NtpClient::new();
    let res = client.request("ntp.aliyun.com");
    println!("{}", res.unix_time);
    println!("{}", res.format_time("%Y-%m-%d %H:%M:%S"));
}
```