时间格式转换

来源:互联网 发布:全球云计算市场规模 编辑:程序博客网 时间:2024/06/02 06:57
Time localTime = new Time("Asia/Hong_Kong");
  localTime.setToNow();
  String time = localTime.format("%Y-%m-%d %H:%M:%S");
  Log.e("", "用DateFormat.getTimeInstance()格式化时间后为:" + time);
0 0
原创粉丝点击