convert_time
Convert a time or date-time between timezones and see both local times with UTC offsets, weekdays, and the time difference, including daylight saving notes.
Instructions
Convert a time or date-time from one timezone to another. Returns both sides with their timezone, UTC offset and weekday, and the time difference. A note is added when the time is skipped or repeated by a daylight saving time change. Accepted forms: '2024-12-10', '2024-12-10 14:30', '2024-12-10T14:30:00+09:00', '2024/12/10', '2024年12月10日 14時30分', Japanese era such as '令和6年12月10日' or 'R6.12.10', and a time only such as '14:30' (today).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Time or date-time to convert, e.g. '14:30' or '2024-12-10 14:30'. | |
| format | No | Output format name or custom pattern, as in get_datetime. | datetime |
| source_timezone | No | IANA timezone of 'time', e.g. 'Asia/Tokyo'. Omit to use the local timezone. An offset written in 'time' (+09:00, Z) takes precedence. | |
| target_timezone | Yes | IANA timezone to convert to, e.g. 'America/New_York'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||