While an infant needs 16 to 17 hours of sleep a day, they won't sleep through the night until they're six months old.