获取当前时间

String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
System.out.println(time);
posted @ 2017-02-03 17:09  jims u  阅读(151)  评论(0)    收藏  举报