(raw_ts: str)
| 36 | |
| 37 | |
| 38 | def _parse_timestamp(raw_ts: str): |
| 39 | for fmt in (TS_FMT, LOGURU_TS_FMT): |
| 40 | try: |
| 41 | return datetime.strptime(raw_ts, fmt) |
| 42 | except ValueError: |
| 43 | pass |
| 44 | raise ValueError(f"unsupported timestamp format: {raw_ts}") |
| 45 | |
| 46 | |
| 47 | def parse_args() -> argparse.Namespace: |