Code for manipulating time, displaying time, and rendering clocks