Maternal positive affect over the course of pregnancy is associated with the length of gestation and reduced risk of preterm delivery.