How a number line and a time line are similar mathematically?

A time line is a number line of years