Modify formatting of getDisplayTime()
Addition test cases for getDisplayTime()