Wayne's Github Page

A place to learn about statistics

Dates and times as a data type

Dates and time are not like natural numbers. There is no natural 0 point in time, certain regions have day-light savings, and different regions have different time zones. All these peculiarities lead to the need for a special data type for handling dates and times.

Fortunately the built-in package, datetime has most of the functionalities covered.