Converts a specific date and time from a source zone to a target zone, returning the converted wall-clock time, both zones' UTC offsets and DST states, and the equivalent UTC time.
datetime is interpreted as wall-clock time in from_timezone unless it already carries a UTC offset (e.g. 2026-06-06T14:30:00+02:00), in which case that offset fixes the instant. Both zone arguments are IANA names. Conversions account for daylight saving on both sides at the given instant. Computed locally.
ISO 8601 date-time to convert (e.g. 2026-06-06T14:30:00). Interpreted in from_timezone unless it carries a UTC offset.
Target IANA time-zone name (e.g. Europe/Berlin).
Source IANA time-zone name (e.g. America/New_York).