> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 日時ツール

> 現在の日付と時刻をモデルのコンテキストに注入します。datetime Server Tool により、システムプロンプトのハックなしにモデルが正確な時間認識を持てます。

`datetime` Server Tool はモデルに現在の日付と時刻を提供します。

## クイックスタート

```json theme={null}
{
  "model": "openai/gpt-5.4",
  "messages": [{"role": "user", "content": "What day of the week is today, and how many days until the end of the year?"}],
  "tools": [{"type": "arouter", "arouter": {"id": "datetime"}}]
}
```

## 設定

| パラメータ      | 型        | デフォルト   | 説明                                                                         |
| ---------- | -------- | ------- | -------------------------------------------------------------------------- |
| `id`       | `string` | —       | `"datetime"` である必要があります                                                    |
| `timezone` | `string` | `"UTC"` | IANA タイムゾーン識別子（例：`"America/New_York"`、`"Asia/Shanghai"`、`"Europe/London"`） |

## ツールのレスポンス形式

```json theme={null}
{
  "datetime": "2026-04-03T14:32:00Z",
  "date": "2026-04-03",
  "time": "14:32:00",
  "timezone": "UTC",
  "day_of_week": "Friday",
  "unix_timestamp": 1775319120
}
```

## ユースケース

**スケジューリングとプランニング：**

```python theme={null}
response = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Create a 2-week project plan starting from today."}],
    tools=[{"type": "arouter", "arouter": {"id": "datetime", "timezone": "Asia/Shanghai"}}],
)
```

## 価格

`datetime` ツールは**無料**です——通常の LLM Token コストを超える追加料金はかかりません。

## 次のステップ

* [ウェブ検索ツール](/jp/guides/features/server-tools/web-search)
* [Server Tools の概要](/jp/guides/features/server-tools/overview)
