https://github.com/seanpray/timeserve
open ntp is for silly goblins
https://github.com/seanpray/timeserve
Last synced: about 1 month ago
JSON representation
open ntp is for silly goblins
- Host: GitHub
- URL: https://github.com/seanpray/timeserve
- Owner: seanpray
- License: mit
- Created: 2022-07-17T06:18:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-18T19:49:40.000Z (almost 3 years ago)
- Last Synced: 2025-03-29T02:52:18.341Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### TimeServe
simple time sync tool, I installed open-ntp and it was simply unnecessary. I dual boot windows + gnu/linux and do not need a daemon running to sync the time. I wrote this tiny tool to have a small program run on a server while a client can connect and convert the server's unix timestamp into the local time/date and set it with root permissions. I should have probably used something like Python for this since it wouldn't need this extra fat binary.
Creates an HTTP endpoint to request the UNIX timestamp in ms. You can run the server portion with ./TimeServe --serve, any other argument will be seen as a server ip to connect to.
##### Examples:
```
// server
$ ./TimeServe --serve 54321
// sync
# ./TimeServe 192.168.1.0:54321
```