Display time

The example sketch I posted above wastes a lot of time doing nothing !

as long as you call the following functions in your loop when you want the time updated you should be fine:
DateTime.available(); //refresh the Date and time properties
digitalClockDisplay( ); // update digital clock