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.
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 |