暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

datetime.py 193B

123456789
  1. # -*- coding: utf-8 -*-
  2. import datetime
  3. def get_utc_timestamp():
  4. d = datetime.datetime.utcnow()
  5. epoch = datetime.datetime(1970, 1, 1)
  6. t = (d - epoch).total_seconds()
  7. return t