Parse a I[.F] seconds value into (seconds, microseconds).
(self, value)
| 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: |
no test coverage detected