MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _convert_second_fraction

Function _convert_second_fraction

pymysql/converters.py:148–153  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

146
147
148def _convert_second_fraction(s):
149 if not s:
150 return 0
151 # Pad zeros to ensure the fraction length in microseconds
152 s = s.ljust(6, "0")
153 return int(s[:6])
154
155
156DATETIME_RE = re.compile(

Callers 3

convert_datetimeFunction · 0.85
convert_timedeltaFunction · 0.85
convert_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected