I can't remember exactly but I think it was about two months.
You don't have to put the whole plant into flowering to find out the sex. You can take a clone from the plant and root it under 12/12 light. When it's rooted it will show the flowers immediately.

Happy growing to you PPP