1、java、android中获取当前时间
this.sdf = new SimpleDateFormat("yyyy/MM/dd-hh:mm:ss", Locale.CHINA); String time = sdf.format(new Date(System.currentTimeMillis()));