Previous Post: Javascript: jQuery is the best free library, period!
Next Post: Deja Vu - Microsoft under monopoly attack again
Dec 14, 2007 at 2:44 pm - 0 Comments
A binary clock uses LEDs or other on/off displays to represent the time.

Click Here To View Javascript Binary Clock
Each column represents one digit of the time. From left to right, the first two columns are HH (hours), the middle two columns are MM (minutes), and the last two columns are SS (seconds). Each LED of the column has its own value; either 1, 2, 4, or 8. The top being 1. Most binary clocks have 1 start at the bottom, but I wanted to be different :) You determine that column's value by adding together the values of the lit LEDs in the row. So lets say 1 and 4 are on, that digit would be 5. If 1 and 8 were lit, the digit would be 9. In the image above, the time displayed is 14:54:24, or 5:54pm.
Here is the Javascript Binary Clock script that I wrote. The script utilizes the jQuery Javascript Library. I am releasing the code with no restrictions. You may take it and use it as you like! If you put it on your site, perhaps you could at least link back to me somewhere on your site :)
A stylish desktop binary clock would be a great gift for family/friends or yourself!
