How do Digital and Analog Clocks Works?