format_time
Convert any ISO datetime to ISO 8601, RFC 3339, locale-aware, Jalali, or custom Luxon formats. Specify timezone and calendar for deterministic, locale-specific output.
Instructions
Deterministically format a datetime string. Supports ISO 8601, RFC 3339, locale-aware formats (en-US, de-DE, ja-JP, fa-IR, etc.), Jalali, human-readable, and custom Luxon format strings. Use Intl.DateTimeFormat for locale-specific output.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datetime": "<datetime>",
"format": "<format>"
},
"name": "format_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Format name or pattern: iso8601, rfc3339, utc, unix, relative, human, jalali, weekday, date-short/medium/long/full, time-short/medium/long, datetime-short/medium/long/full, or a Luxon format string | |
| locale | No | en-US | |
| calendar | No | gregorian | |
| datetime | Yes | ISO 8601 datetime to format | |
| timezone | No | UTC |