📜  获取日期的剩余时间 kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.874000             🧑  作者: Mango

代码示例1
val diff: Long = date1.getTime() - date2.getTime()
val seconds = diff / 1000
val minutes = seconds / 60
val hours = minutes / 60
val days = hours / 24