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