MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / _convert_second_fraction

Function _convert_second_fraction

tortoise/converters.py:131–136  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

129
130
131def _convert_second_fraction(s) -> int:
132 if not s:
133 return 0
134 # Pad zeros to ensure the fraction length in microseconds
135 s = s.ljust(6, "0")
136 return int(s[:6])
137
138
139encoders = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…