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

# autogen.tools.contrib.TimeTool

<h2 id="autogen.tools.contrib.TimeTool" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">TimeTool</span>
</h2>

```python theme={null}
TimeTool(*, date_time_format: str = '%Y-%m-%d %H:%M:%S')
```

Outputs the current date and time of the computer.<br />Get the date and time of the computer.<br />

<b>Parameters:</b>

| Name               | Description                                        |
| ------------------ | -------------------------------------------------- |
| `date_time_format` | **Type:** str<br /><br />**Default:** '%Y-%m-%d %H |
