https://github.com/vsnthdev/samaya
( समय ) - A time synchronization program that uses HTTP protocol.
https://github.com/vsnthdev/samaya
cli go golang http-client https ntp ntp-protocol sync synchronization time timesync
Last synced: 12 months ago
JSON representation
( समय ) - A time synchronization program that uses HTTP protocol.
- Host: GitHub
- URL: https://github.com/vsnthdev/samaya
- Owner: vsnthdev
- License: gpl-2.0
- Created: 2019-08-13T06:25:25.000Z (over 6 years ago)
- Default Branch: mainline
- Last Pushed: 2021-08-09T11:34:38.000Z (over 4 years ago)
- Last Synced: 2025-03-24T05:43:54.754Z (about 1 year ago)
- Topics: cli, go, golang, http-client, https, ntp, ntp-protocol, sync, synchronization, time, timesync
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
samaya
( समय ) - A time synchronization program that uses HTTP protocol.
`samaya` is a command line program for synchronizes your system clock using the HTTPS protocol from World Time API. `samaya` is very helpful in situations where NTP (Network Time Protocol) packets are blocked or inaccessible.
## 🚀 Usage
```
samaya
A time synchronization program that uses HTTP protocol.
Usage:
samaya [flags]
Flags:
-D, --delay int Delay the number of seconds before requesting the time
-d, --dry Fetch the time, but don't update it
-h, --help help for samaya
-t, --timezone string Set time of that timezone (default "auto")
-v, --verbose Show extended output
-V, --version Print the version number and exit
-w, --wait for internet Wait until an active internet connection is established
```
## 🛠 Building
#### Dependencies:
| Package | Recommended Version |
|---------|---------------------|
| Go | v1.12.8 |
| Make | v4.2.1 |
| Git | v2.23.0 |
#### Build Procedure:
```
# Create the namespace
mkdir -p "$(go env GOPATH)/src/vasanthdeveloper.com"
# Clone the project
git clone --single-branch --branch mainline https://github.com/vasanthdeveloper/samaya.git "$(go env GOPATH)/src/vasanthdeveloper.com/samaya"
# Enter the freshly cloned project
cd "$(go env GOPATH)/src/vasanthdeveloper.com/samaya"
# Start the compilation
make
# Install the compiled binaries
sudo make install
# Make samaya sync time, every time we boot the computer
sudo systemctl enable --now samaya
```
## 📰 License
> The **samaya** project is released under the [MIT license](LICENSE.md).
Developed & maintained By Vasanth Srivatsa. Copyright 2021 © Vasanth Developer.
> vsnth.dev ·
> YouTube @vasanthdeveloper ·
> Twitter @vsnthdev ·
> Discord Vasanth Developer