Create a BCD binary clock in ASCII. As implied, it shall display time in six columns of dots:
(source: Wikimedia Commons)
Each column is a binary-coded digit, reading hours, minutes and seconds from left to right. Hours are given in 24-hour format.
The time to display is read from the command-line or from stdin (whichever fits better). If empty, the current time should be used instead.
Output size is a little constrained here and we can only fit two lines of
text. So you are required to put the dots into only two lines. The
characters .
, :
and '
come in handy here.
Input
The time to display in ISO-8601 format, i.e. HH:MM:SS
without fractional
seconds. Mandatory 24-hour format. Input can be empty in which case the
current time will be used.
Output
Two lines with represent the BCD binary clock as in the image above. Each line is exactly six characters long and the only allowed characters are space, period, colon and apostrophe.
Winner
Shortest code by byte count wins. In a tie, the solution posted first wins.
Sample input 1
(empty)
Sample output 1
.
''. ::
Sample input 2
17:59:20
Sample output 2
..'
.:..'
Sample input 3
01:08:01
Sample output 3
'
. .