Big fix for clock.py

A microsecond error causes the script to crash if microseconds == 0. Fix
by Phil, confirmed by Ric