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
- Host: GitHub
- URL: https://github.com/chambln/fuzzyclock
- Owner: chambln
- License: mit
- Created: 2020-01-18T19:05:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T22:43:04.000Z (over 6 years ago)
- Last Synced: 2025-02-14T11:26:57.518Z (over 1 year ago)
- Language: Haskell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
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