SyntaxFix
Write A Post
Hire A Developer
Questions
Epoch is the number of seconds since Jan 1, 1970..
So:
String epochString = "1081157732"; long epoch = Long.parseLong( epochString ); Date expiry = new Date( epoch * 1000 );
For more information: http://www.epochconverter.com/