public static String getMintesTime() {
Date now = new Date();
long curVal = now.getTime();
long minVal = 20 * 60 * 1000;//20分钟
curVal += minVal;
Date dstDate = new Date(curVal);
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(dstDate);
}
Date now = new Date();
long curVal = now.getTime();
long minVal = 20 * 60 * 1000;//20分钟
curVal += minVal;
Date dstDate = new Date(curVal);
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(dstDate);
}