When did you/will you announce your pregnancy?

I'm planning to tell close family when I have my first scan. However I don't want the public to know until I find out the sex because that's when I will feel completely comfortable. Mom's and moms-to-be when did you/will you announce yours? And do you think waiting until I find out the sex is too long?