原文:java 获取当前时间并转化为yyyy-MM-dd HH:mm:ss格式

https: blog.csdn.net weixin article details 方法一 线程不安全, 不建议使用 private SimpleDateFormat sdf new SimpleDateFormat yyyy MM dd HH:mm:ss Date now new Date String time sdf.format now 方法二 线程安全,建议使用 yyyy MM dd ...

2020-10-29 14:18 0 13999 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM