Ви не можете вибрати більше 25 тем
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789 |
- # -*- 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
|