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

Method _parsems

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

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

(self, value)

Source from the content-addressed store, hash-verified

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

Callers 2

_parse_numeric_tokenMethod · 0.95
_assign_hmsMethod · 0.95

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected