refactored time#format