These are a few programs that I made for keeping time. They include a 12-hour clock, a digital clock, and a timer.
The function for the 12-hour clock(in the program titled CLOCK) is used fairly easily. Use DRAWCLOCK to draw it. The parameters for the function are X center point, Y center point, radius, display hour numbers(TRUE or FALSE), color
Credit: HackTheWorlds - Xiaolin Wu's Anti-aliased lines function