An open API service indexing awesome lists of open source software.

https://github.com/chambln/fuzzyclock

19:14 → quarter past seven
https://github.com/chambln/fuzzyclock

Last synced: about 1 year ago
JSON representation

19:14 → quarter past seven

Awesome Lists containing this project

README

          

* Fuzzyclock

Fuzzyclock is a simple utility that describes digital clock times in
an approximate and conversational way.

** Installation

You will need GHC to compile this.

#+BEGIN_SRC sh
make
sudo make install
#+END_SRC

** Usage

Times are read from standard input and should be separated by
whitespace.

#+BEGIN_SRC
$ echo 8:39 | fuzzyclock
twenty to nine
$ echo 15:22:57 | fuzzyclock
twenty past three
$ echo 0 | fuzzyclock
twelve
$ echo 25:13 | fuzzyclock
quarter past one
$ echo 19:10 20:53 21:36 | fuzzyclock
ten past seven
five to nine
twenty-five to ten
#+END_SRC

Particularly useful in composition with date(1):

#+BEGIN_SRC sh
date +%T | fuzzyclock
#+END_SRC