Lines Matching refs:SEC_TO_NS
28 SEC_TO_NS = 10 ** 9
783 units = [1, US_TO_NS, MS_TO_NS, SEC_TO_NS]
812 ns = (2 ** pow2) * SEC_TO_NS
818 ns_timestamps.append(seconds * SEC_TO_NS)
826 ns = (2 ** 63 // SEC_TO_NS) * SEC_TO_NS
836 unit_to_ns = SEC_TO_NS / float(unit_to_sec)
839 unit_to_ns = SEC_TO_NS // unit_to_sec
867 ns = self.OVERFLOW_SECONDS * SEC_TO_NS
897 OVERFLOW_SECONDS = math.ceil((2**63 + 1) / SEC_TO_NS)
907 lambda secs: secs * SEC_TO_NS,
920 lambda secs: secs * SEC_TO_NS)
924 lambda ns: self.decimal_round(ns * SEC_TO_NS))
935 if abs(ns) % SEC_TO_NS == 0:
936 return float(ns // SEC_TO_NS)
938 return float(ns) / SEC_TO_NS
987 return divmod(ns, SEC_TO_NS)
1110 self.create_converter(SEC_TO_NS),