For decades, scientists believed dinosaurs were diurnal and tiny mammals were nocturnal. But as researchers have uncovered more mammalian fossils and studied the biology of different dinosaur species, they’ve found some surprising results.