CodePudding user response:
Timestamp currentTime=new Timestamp (System. CurrentTimeMillis ());
1 day//here is 24 * 3600 * 1000, 2 days is 2 * * 3600 * 1000, 24 so on
Timestamp secondDay=new Timestamp (currentTime getTime () + (24 * 3600 * 1000));
CodePudding user response:
Timestamp currentTime=new Timestamp (System. CurrentTimeMillis ());
1 day//here is 24 * 3600 * 1000, 2 days is 2 * * 3600 * 1000, 24 so on
Timestamp secondDay=new Timestamp (currentTime getTime () + (24 * 3600 * 1000));