Post Natal Depression?

How long after your baby is born can you have post natal depression?

Is it just a recently after birth thing or can it be months after?