The effect of a nighttime curfew on the spread of COVID-19