Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j0hax/beats
Swatch Internet Time in C
https://github.com/j0hax/beats
Last synced: 2 days ago
JSON representation
Swatch Internet Time in C
- Host: GitHub
- URL: https://github.com/j0hax/beats
- Owner: j0hax
- License: gpl-3.0
- Created: 2021-06-11T13:15:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-02T22:03:09.000Z (over 3 years ago)
- Last Synced: 2024-08-04T00:11:53.150Z (3 months ago)
- Language: C
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-internettime - beats by j0hax - Also with links to other C implementations. (Programming Languages, Libraries)
README
# beats
Swatch Internet Time implemented as a C program.## Usage
```console
$ beats -h
Usage: beats [-ahn] [-f | -i] [-t timestamp]
Displays the Swatch Internet Time.-a omit leading @-sign
-f print full floating-point value
-h display this help and exit
-i integer mode (omit decimals)
-n omit newline (\n)
-t parse UNIX timestamp
```## Compile and Install
`gcc` and `make` are required.Standard procedure:
1. Run `make` to compile, or
2. `make install` to compile and move the binary file to the `$PREFIX`## Thanks
Quite a few other implementations exist online, such as [brneor/swatch](https://github.com/brneor/swatch) and [hyphenrf/swatch.beats](https://github.com/hyphenrf/swatch.beats).This program was written with the UNIX Philosophy in mind: to be small, cleanly-written and flexible.