# macos_force_24_hour_time

> **Function** in `deepagents_code`

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

Read macOS's "24-Hour Time" preference (`AppleICUForce24HourTime`).

macOS exposes the clock style as a global preference that does not surface
through the POSIX `LC_TIME` locale (libc `%X` is 24-hour for every macOS
locale), so it must be read separately.

## Signature

```python
macos_force_24_hour_time() -> bool | None
```

## Returns

`bool | None`

`True`/`False` when the preference is explicitly set, or `None` when it

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/formatting.py#L40)