/***获取系统当前时间(毫秒数)*/longl=System.currentTimeMillis();/***获取系统当前时间(年-月-日上午/下午X时X分)(可指定)*/SimpleDateFormatformat=newSimpleDateFormat();Stringtime=format.format(newDate());