时间

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
  String time = sdf.format(Calendar.getInstance().getTime());
  System.out.println(time);

你可能感兴趣的:(时间)