Design a simple digital clock application that displays the current time in a 12-hour or 24-hour format.