public static int convertExpiryTime ( int original ) { if ( original == 0 ) { return original ; } else if ( original > THIRTY_DAYS ) { return original + ( int ) Info . getClockOffset ( ) ; } return ( int ) ( ( new Date ( ) . getTime ( ) / 1000 ) + original + Info . getClockOffset ( ) ) ; }
Converts an expiration value to an absolute Unix timestamp .