Get date and time
get_datetimeReturn the current date and time in any IANA timezone, formatted as ISO, Unix timestamp, or readable text, with optional shifts in whole days.
Instructions
Current date and time in an IANA timezone, optionally shifted by whole days. The iso field is the wall clock in that zone, so its offset makes the instant unambiguous; unix is the same instant as epoch seconds, and human is a localized rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Adds a localized "human" string when set to "human". | iso |
| timezone | No | IANA timezone name, e.g. "UTC", "Europe/London", "Asia/Tokyo". | UTC |
| offsetDays | No | Whole days to shift the result, relative to now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso | Yes | ISO 8601 wall-clock time in the requested zone, carrying that zone's UTC offset. | |
| unix | Yes | Seconds since the Unix epoch. | |
| human | No | Localized rendering; present only when format is "human". | |
| timezone | Yes | Canonical IANA name of the resolved zone. |