import time from time time() code example
Example 1: import time in python
import time
seconds = time.time()
print('Seconds since epoch = ', seconds)
Example 2: how to import time in python
import time
import time
seconds = time.time()
print('Seconds since epoch = ', seconds)
import time