How to get the current time in Python

前端 未结 30 1427
滥情空心
滥情空心 2020-11-22 06:47

What is the module/method used to get the current time?

30条回答
  •  情话喂你
    2020-11-22 07:37

    Do

    from time import time
    
    t = time()
    
    • t - float number, good for time interval measurement.

    There is some difference for Unix and Windows platforms.

提交回复
热议问题