long systime = System.currentTimeMillis();
long newtagex = systime + (1000*60*60*24*30);
Date curdate = new Date(systime);
Date tagdate = new Date(newtagex);
System.out.println("Current time " + systime +" " + curdate.toGMTString());
System.out.println("Expiry time " + newtagex + " " + tagdate.toGMTString());
System.out.println("plus 60 seconds" + (systime + 1000*60));
System.out.println("plus 60 min " + (systime + 1000*60*60));
System.out.println("plus 24 hrs " + (systime + 1000*60*60*24));
System.out.println("plus 30 day " + (systime + 1000*60*60*24*30));
[01:10:38 INFO]: Current time 1425363038489 3 Mar 2015 06:10:38 GMT
[01:10:38 INFO]: Expiry time 1423660071193 11 Feb 2015 13:07:51 GMT
[01:10:38 INFO]: plus 60 seconds1425363098489
[01:10:38 INFO]: plus 60 min 1425366638489
[01:10:38 INFO]: plus 24 hrs 1425449438489
[01:10:38 INFO]: plus 30 day 1423660071193
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE