simplified time display code