SyntaxFix
Write A Post
Hire A Developer
Questions
I would use time.time() to get a timestamp in seconds since the epoch.
import time time.time()
Output:
1369550494.884832
For the standard CPython implementation on most platforms this will return a UTC value.