Models of the temporal spread of epidemics