合聚咖

合聚咖

Java计算现在时间到晚上23.59.59多少时间,现在到晚上23.59.59之间还差多少分钟

admin

使用 SimpleDateFormat得到23:59:59的时间,再使用当前时间相减,结果是毫秒差,转换成分钟就是除以 60000