Wednesday, 5 August 2020

How to get time now in python?

import time
now = time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(time.time()))

No comments:

Post a Comment