説明なし
選択できるのは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