convert_time
Convert any datetime between IANA timezones with correct DST and date-boundary handling, including multiple target zones in one call.
Instructions
Convert a datetime between IANA timezones. Correctly handles DST transitions and date-boundary changes. Never hardcodes UTC offsets. Use IANA timezone names (e.g. 'America/New_York', 'Asia/Tokyo'). Can convert to multiple timezones at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime | Yes | ISO 8601 datetime to convert | |
| to_timezone | Yes | Target IANA timezone(s). Pass a string or array for multiple targets. | |
| from_timezone | Yes | Source IANA timezone |