# parse_cache_timestamp

> **Function** in `deepagents_code`

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

Parse a persisted UTC timestamp, rejecting malformed or naive values.

## Signature

```python
parse_cache_timestamp(
    value: object,
) -> datetime | None
```

## Returns

`datetime | None`

UTC datetime, or `None` when the value is unusable.

---

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