The data suggested that both short and long sleep duration in pregnancy are associated with gestational weight gain.