display time if less than 24 hrs