When using the cash method versus the accrued method, when is Income recorded on the books?

When using the cash method versus the accrued method, when is Income recorded on the books?