this function returns an epoch timestamp float value of the current moment time sleep(secondsthis function stops the program for the number of seconds specified by the seconds argument datetime datetime(yearmonthdayhourminutesecondthis function returns datetime object of the moment specified by the arguments if hourminuteor second arguments are not providedthey default to time time(datetime datetime now(this function returns datetime object of the current moment this function returns datetime object of the moment represented by the epoch timestamp argument datetime datetime fromtimestamp(epochdatetime timedelta(weeksdayshoursminutessecondsmillisecondsmicrosecondsthis function returns timedelta object representing duration of time the function' keyword arguments are all optional and do not include month or year total_seconds(this method for timedelta objects returns the number of seconds the timedelta object represents strftime(formatthis method returns string of the time represented by the datetime object in custom format that' based on the format string see table - for the format details datetime datetime strptime(time_stringformatthis function returns datetime object of the moment specified by time_stringparsed using the format string argument see table - for the format details multithreading to introduce the concept of multithreadinglet' look at an example situation say you want to schedule some code to run after delay or at specific time you could add code like the following at the start of your programimport timedatetime starttime datetime datetime( while datetime datetime now(starttimetime sleep( print('program now starting on halloween '--snip-this code designates start time of october and keeps calling time sleep( until the start time arrives your program cannot do anything while waiting for the loop of time sleep(calls to finishit just sits around until halloween this is because python programs by default have single thread of execution