# format_cache_age

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/cold_cache/format_cache_age)

Format elapsed cache age for compact modal copy.

## Signature

```python
format_cache_age(
    seconds: float,
) -> str
```

## Returns

`str`

Compact hours/minutes label.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/cold_cache.py#L1171)