california foreclosures

Does anyone know how long a tenant or owner can stay in a house if i purchase said property in a trustee sale. This is a question for any CA investors out there.
Thanks, dave