Quick actions

cmd+k|ctrl+k

Navigation

Languages

microsecond.py

Snippet info

Language

Python

Visibility

public

Author

legacy-v1-32

Created

2016-12-14T18:11:10Z

Updated

2016-12-14T18:11:10Z

from datetime import datetime 
import time
def current_micro_time():
    dt = datetime.utcnow()
    return int(10**6*time.mktime(dt.timetuple())+dt.microsecond)
    
print(current_micro_time())
INFO