Create a BCD binary clock in ASCII. As implied, it shall display time in six columns of dots:
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
' come in handy here.
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.
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.
Shortest code by byte count wins. In a tie, the solution posted first wins.
Sample input 1
Sample output 1
. ''. ::
Sample input 2
Sample output 2
Sample input 3
Sample output 3
' . .