Swatch Internet Time implemented as a C program.
$ 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
gcc
and make
are required.
Standard procedure:
- Run
make
to compile, or make install
to compile and move the binary file to the$PREFIX
Quite a few other implementations exist online, such as brneor/swatch and hyphenrf/swatch.beats.
This program was written with the UNIX Philosophy in mind: to be small, cleanly-written and flexible.