Draw a BCD Binary clock 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

   '  
 .   .
Ruby, 107 103 99 94 90 characters
$&gt;&lt;&lt;[$/,(gets||Time.now.to_s[11,8]).tr(z=&quot; .':&quot;,&quot;&quot;).bytes.map{|a|$&gt;&lt;&lt;z[a/4-12];z[a%4]}]*&quot;&quot;

Note that the input shouldn't contain a linebreak, so to test the solution use something like echo -n &quot;01:08:01&quot; | ruby1.9 bcd.rb.
To test the default behavior, run it with ruby1.9 bcd.rb and enter ^D (i.e. a literal EOF).