How long does it take to get used to a new job?

How long does it take to get used to a new job? To catch up on company specific situations? To figure out the software, the expectations, the deliverables? How long before it starts feeling right? feeling comfortable?