setExpiration

public abstract void setExpiration(Date expiration)

Sets the date this ban expires on. Null values are considered "infinite" bans.

Parameters

expiration

the new expiration date, or null to indicate an eternity

See also

saving changes