Long -> String
fun main() {
val currentTime = System.currentTimeMillis()
convertTimestampToDate(currentTime)
}
fun convertTimestampToDate(timestamp: Long) {
val sdf = SimpleDateFormat("yyyy-MM-dd-hh-mm")
val date = sdf.format(timestamp)
println(date)
}
출처: https://youngest-programming.tistory.com/352