time(and gmtime(importing "timemodule for time operations import time using time(to display time since epoch print ("seconds elapsed since the epoch are ",end=""print (time time()using gmtime(to return the time attribute structure print ("time calculated acc to given seconds is "print (time gmtime()outputseconds elapsed since the epoch are time calculated acc to given seconds is time struct_time(tm_year= tm_mon= tm_mday= tm_hour= tm_min= tm_sec= tm_wday= tm_yday= tm_isdst= asctime("time":this function takes time attributed string produced by gmtime(and returns character string denoting time ctime(sec:this function returns character time string but takes seconds as argument and computes time till mentioned seconds if no argument is passedtime is calculated till present python code to demonstrate the working of asctime(and ctime(importing "timemodule for time operations import time initializing time using gmtime(ti time gmtime(using asctime(to display time acc to time mentioned print ("time calculated using asctime(is ",end=""print (time asctime(ti)using ctime(to display time string using seconds print ("time calculated using ctime(is "end=""print (time ctime()outputtime calculated using asctime(is tue aug : : time calculated using ctime(is tue aug : : sleep(sec:this method is used to halt execution for the time specified in the arguments the program