(timestamp: str)
| 405 | |
| 406 | |
| 407 | def floor_minute(timestamp: str) -> str: |
| 408 | dt = datetime.fromisoformat(timestamp.replace("Z", "+00:00")) |
| 409 | return dt.strftime("%Y-%m-%dT%H:%M") |
| 410 | |
| 411 | |
| 412 | def percentile_stats(values: list[float]) -> dict[str, float | None]: |