# save_thread_relative_time

> **Function** in `deepagents_code`

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

Save the relative-time display preference for thread timestamps.

## Signature

```python
save_thread_relative_time(
    enabled: bool,
    config_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `enabled` | `bool` | Yes | Whether to display relative timestamps. |
| `config_path` | `Path \| None` | No | Path to config file. (default: `None`) |

## Returns

`bool`

True if save succeeded, False on I/O error.

---

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