Set role expiry programmatically in uc_roles_expirations table?
Solved Just by Database entry :

$expiredate = date('U', strtotime($expiry));
    db_insert('uc_roles_expirations')
    -&gt;fields(array(
      'uid' =&gt; $uid,
      'rid' =&gt; 6,
      'expiration' =&gt; $expiredate,
    ))
    -&gt;execute();