this were derived from the now defunct scikits timeseries library date and time data types and tools the python standard library includes data types for date and time dataas well as calendar-related functionality the datetimetimeand calendar modules are the main places to start the datetime datetime typeor simply datetimeis widely usedin [ ]from datetime import datetime in [ ]now datetime now(in [ ]now out[ ]datetime datetime( in [ ]now yearnow monthnow day out[ ]( datetime stores both the date and time down to the microsecond datetime time delta represents the temporal difference between two datetime objectsin [ ]delta datetime( datetime( in [ ]delta out[ ]datetime timedelta( in [ ]delta days out[ ] in [ ]delta seconds out[ ] you can add (or subtracta timedelta or multiple thereof to datetime object to yield new shifted objectin [ ]from datetime import timedelta in [ ]start datetime( in [ ]start timedelta( out[ ]datetime datetime( in [ ]start timedelta( out[ ]datetime datetime( the data types in the datetime module are summarized in table - while this is mainly concerned with the data types in pandas and higher level time series manipulationyou will undoubtedly encounter the datetime-based types in many other places in python the wild time series www it-ebooks info