marijuana and pregnancy

does anyone know how long it takes for the baby to get marijuana completely out of its system before birth? what about the mother?