SimpleDateFormat   formatter   =   new   SimpleDateFormat   ("yyyy-MM-dd   HH:mm:ss     "); 
Date   curDate   =   new   Date(System.currentTimeMillis());//System.currentTimeMillis()为long型数
String   str   =   formatter.format(curDate);  

输出:

Android之获取系统时间のDate

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2021-04-20
  • 2022-02-10
  • 2021-06-11
猜你喜欢
  • 2022-02-10
  • 2021-11-22
  • 2022-02-10
  • 2022-02-02
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案