Skip to content

j0hax/beats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beats

Swatch Internet Time implemented as a C program.

Usage

$ 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 and hyphenrf/swatch.beats.

This program was written with the UNIX Philosophy in mind: to be small, cleanly-written and flexible.