Question: how long do you have to know someone for a character reference?
Answer: Only ask someone who knows you personally, who thinks highly of you and preferably someone who has known you for at least a year and in various situations, so they can credibly attest to your character.