mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-01 20:10:55 +01:00
9 lines
193 B
Python
9 lines
193 B
Python
# -*- coding: utf-8 -*-
|
|
import datetime
|
|
|
|
|
|
def get_utc_timestamp():
|
|
d = datetime.datetime.utcnow()
|
|
epoch = datetime.datetime(1970, 1, 1)
|
|
t = (d - epoch).total_seconds()
|
|
return t
|