No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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