A tenancy or other estate at will, however created, may be terminated by the landlord’s giving notice in writing to the tenant, in the manner prescribed by Section 1162 of the Code of Civil Procedure, to remove from the premises within a period of not less than 30 days, to be specified in the notice.