Calendar cal = Calendar.getInstance();
cal.add(Calendar.MINUTE, 15);//15分钟失效
long timestamp = cal.getTimeInMillis()/ 1000L;


在线Linux时间戳 http://tool.chinaz.com/Tools/unixtime.aspx