MCPcopy Index your code
hub / github.com/python/cpython / invert

Method invert

Lib/test/datetimetester.py:6619–6628  ·  view source on GitHub ↗
(ut, ti)

Source from the content-addressed store, hash-verified

6617
6618 @staticmethod
6619 def invert(ut, ti):
6620 lt = (array('q', ut), array('q', ut))
6621 if ut:
6622 offset = ti[0][0] // SEC
6623 lt[0][0] += offset
6624 lt[1][0] += offset
6625 for i in range(1, len(ut)):
6626 lt[0][i] += ti[i-1][0] // SEC
6627 lt[1][i] += ti[i][0] // SEC
6628 return lt
6629
6630 @classmethod
6631 def fromfile(cls, fileobj):

Callers 12

__init__Method · 0.95
olFunction · 0.80
llFunction · 0.80
NFunction · 0.80
sFunction · 0.80
d3.min.jsFile · 0.80
xFunction · 0.80
TFunction · 0.80
AFunction · 0.80
SFunction · 0.80
EFunction · 0.80
kFunction · 0.80

Calls 1

arrayClass · 0.85

Tested by

no test coverage detected