MCPcopy Create free account
hub / github.com/dateutil/dateutil / _parsems

Method _parsems

src/dateutil/parser/_parser.py:1133–1139  ·  view source on GitHub ↗

Parse a I[.F] seconds value into (seconds, microseconds).

(self, value)

Source from the content-addressed store, hash-verified

1131 # of functions for the sake of customizability via subclassing.
1132
1133 def _parsems(self, value):
1134 """Parse a I[.F] seconds value into (seconds, microseconds)."""
1135 if "." not in value:
1136 return int(value), 0
1137 else:
1138 i, f = value.split(".")
1139 return int(i), int(f.ljust(6, "0")[:6])
1140
1141 def _to_decimal(self, val):
1142 try:

Callers 2

_parse_numeric_tokenMethod · 0.95
_assign_hmsMethod · 0.95

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected