获取当前时间和今天零点时间的几种不同方法和时间格式

Date date = new Date(); LocalDateTime now = LocalDateTime.now(); SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”); String format = df.format(date); long current = System.currentTimeMi
相关文章
相关标签/搜索