get int seconds from time.struct python code example Example: python time library #also see datetime import time now = time.time() print(now)