pygame is
Simple DirectMedia Layer is
Site Swing

pyBCD - 1.1

Chris Uzal (c4)



Why would you want to use a binary clock?

Because if you use Arabic numerals... then the terrorists have already won. :p

Download this binary clock today and support freedom loving peoples everywhere.


The "binary clock" is a great exercise in programming. When you're already familiar with programming theory, you need something slightly bigger than "hello world."

This is my first published python project. You can import this file to use the get_correct_digit function in your own work. I've licensed it as GPL 3 so I look forward to seeing interesting additions to it (if that ever happens.)


Small changes.

Primarily, the links from previous versions are dead.

The one below are living.

Celebrate life.

As usual, you can resize your window, re color your clock red, green or blue (space bar) and choose a 12 or 24 hour format.

You read the clock from left to right as you do with terrorist numerals. Tens place, ones place for the hours. Tens place, ones place for the minutes. For each column, you add up from the bottom. The rows are valued one, two, four and eight.

11:35 PM would have the first two columns lit on the first row only. The third column would have the first and second row lit. The fourth column would have the first and third (one plus four) lit.

This will work on any operating system to the best to my knowledge. Just add python and pygame.


Home Page:


click to view original size


pyBCD - 1.1 - Apr 26, 2012
pyBCD - 1.0 Final - Jul 1, 2008
pyBCD - 0.42 - Jun 30, 2008
pyBCD - 0.27 - Jun 26, 2008
pyBCD - 0.2 - Jun 24, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

July 1, 2008 9:47am - Chris Uzal - nickname: (c4)
@PyMike: thanks for checking it out. You kept me in python with your PySetup v1.1 code. Props to you are under Release 0.2.

@Paul: Thanks for the rating. As to binary representation of Unix time, I accept your challenge. I'm going to assume that "proper binary"(as oppose to *B*inary *C*oded *D*ecimal :p) means zeros and ones.

I can write it... I can confirm that it's displaying the right sequence... but I doubt I'll ever be able to read it with the speed of BCD or Arabic digits. Even if I could convert it in my head to the decimal seconds, then there's converting it to a human usable format.

It will be fun. :)
June 30, 2008 11:42pm - Paul Davey - nickname: (technomancer) - 5/5
make one that displays unix time in proper binary :P
June 30, 2008 2:02pm - pymike - nickname: (pymike)
Neato :)
June 26, 2008 10:52am - Chris Uzal - nickname: (c4)
Thank you. I'd like to replace my windows clock with a smaller (much smaller) version of my binary clock.
June 24, 2008 4:12pm - Emanuel Berg - nickname: (metabaron)
June 24, 2008 3:41pm - Michael - nickname: (cookie) - 4/5
Nice toy! Should add nicely to futuristic games ...

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
May 22, 2016

May 21, 2016

May 18, 2016

May 1, 2016

Mar 27, 2016

Mar 26, 2016

Mar 22, 2016

Mar 19, 2016

Mar 17, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)