Before a baby sees its first sunrise, it is already receiving signals about day and night. Melatonin, a hormone released mainly at night, can pass from the mother through the placenta. The placenta supplies the developing foetus with oxygen and nutrients.
This may help explain interest in a Japanese study of 31,528 mothers and children. It found a link between working night shifts during pregnancy and possible developmental difficulties in children at age four. But it could not show that night work caused those difficulties.