Example:
$ rsdate pool.ntp.org
[2021-10-11T05:02:32Z INFO rsdate] [pool.ntp.org] Mon, 11 Oct 2021 15:02:32 +1000
Pre-compiled binaries are available for a number of platforms.
Example to download and extract a binary:
curl https://releases.wezm.net/rsdate/0.1.0/rsdate-0.1.0-x86_64-unknown-linux-musl.tar.gz | tar zxf -
```
USAGE:
rsdate [OPTIONS]
ARGS:
OPTIONS: -h, --help Prints help information
-p, --print
Print the time returned by the server.
-s, --set
Set the system time to the returned time.
-t, --timeout TIMEOUT
Sets response timeout in seconds. [default: 10]
-l, --syslog
Print messages to syslog.
-V, --version
Prints version information
```
Minimum Supported Rust Version: 1.53.0
rsdate
is implemented in Rust. See the Rust website for instructions on
installing the toolchain.
Build the binary with cargo build --release --locked
. The binary will be in
target/release/rsdate
.
cargo install rsdate
This tool is inspired by rdate.
This project is dual licenced under either of:
at your option.