hours case minutes case seconds } // Ҿʹ࣌ؒ͢ͷ୯ҐΛInt͔ΒDateTermʹมߋ func formattedPostDateTime(datetime: Int, termType: DateTerm) -> String { switch termType { case .day: return "\(datetime)લ" case .hours: return "\(datetime)࣌ؒલ" // লུ... } } // ҾʹͲΕ͘Β͍લ͔IntͱDateTermΛ༩͑ͯϑΥʔϚοτ formattedPostDateTime(datetime: 10, termType: .day)