File: _epoch.pyx

package info (click to toggle)
python-srsly 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: python: 21,404; ansic: 4,160; cpp: 51; sh: 12; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 177 bytes parent folder | download
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)