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

Function _convert_second_fraction

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

Source from the content-addressed store, hash-verified

151
152
153def _convert_second_fraction(s):
154 if not s:
155 return 0
156 # Pad zeros to ensure the fraction length in microseconds
157 s = s.ljust(6, "0")
158 return int(s[:6])
159
160
161DATETIME_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