I coded an ardunio lcd to display the current time. I used a button that could set the time and had it counting the miliseconds to increment the minutes, which would then increment the time to hours once it got over 60. I also programmed it to say am and pm, and to display a different message for each one.