How do you know hamster is pregnant?

You don't really know that the hamster is pregnant until a few days before she gives birth or when he gives birth.