The functions from src/time in the d3 repo