File: _epoch.pyx

package info (click to toggle)
python-srsly 2.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,256 kB
  • sloc: python: 17,567; ansic: 1,434; sh: 12; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
from cpython.datetime cimport import_datetime, datetime_new

import_datetime()
import datetime

utc = datetime.timezone.utc
epoch = datetime_new(1970, 1, 1, 0, 0, 0, 0, tz=utc)