/**
* 几天后的时间戳
* @param day
* @return
*/
public static long getDistanceTime(int day){
long a=System.currentTimeMillis();
long b=1000*60*60*24*day; // 7day
return a+b ;
}
@Test
public void testDt(){
long a=System.currentTimeMillis();
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
System.out.println(sdf.format(a));
long b=1000*60*60*24*7; // 7day
System.out.println(sdf.format(a+b));
System.out.println(sdf.format(Helper.getDistanceTime(7)));
String c=Helper.getDistanceTime(7)+””;
System.out.println(c);
}