datetime values for exampleto calculate the date , days from nowenter the following into the interactive shelldt datetime datetime now(dt datetime datetime( thousanddays datetime timedelta(days= dt thousanddays datetime datetime( firstmake datetime object for the current moment and store it in dt then make timedelta object for duration of , days and store it in thousanddays add dt and thousanddays together to get datetime object for the date , days from now python will do the date arithmetic to figure out that , days after december will be august this is useful because when you calculate , days from given dateyou have to remember how many days are in each month and factor in leap years and other tricky details the datetime module handles all of this for you timedelta objects can be added or subtracted with datetime objects or other timedelta objects using the and operators timedelta object can be multiplied or divided by integer or float values with the and operators enter the following into the interactive shellu oct st datetime datetime( aboutthirtyyears datetime timedelta(days= oct st datetime datetime( oct st aboutthirtyyears datetime datetime( oct st ( aboutthirtyyearsdatetime datetime( here we make datetime object for october and timedelta object for duration of about years (we're assuming days for each of those yearsv subtracting aboutthirtyyears from oct st gives us datetime object for the date years before october subtracting aboutthirtyyears from oct st returns datetime object for the date years before october pausing until specific date the time sleep(method lets you pause program for certain number of seconds by using while loopyou can pause your programs until specific date for examplethe following code will continue to loop until halloween import datetime import time halloween datetime datetime( while datetime datetime now(halloween time sleep( keeping timescheduling tasksand launching programs