繁星点点滴滴
/** * 获取方便识别的当前时间毫秒数,如20151103173941521 */public static Long getCurTime() { return Long.parseLong(SDF_TIME_NUM.format(new Date()));}public static Long getCurTime(String date) { if (StringUtils.isBlank(date)) { return null; } Long curTime = null; try { curTime = Long.parseLong(SDF_TIME_NUM.format(SDF_TIME.parse(date))); } catch (ParseException e) { e.printStackTrace(); } return curTime;}