The simplest method is to compare UTC offsets. If City A is UTC+2 and City B is UTC-5, the difference is 7 hours (2 - (-5) = 7). City A is 7 hours ahead.
Offsets can change when daylight saving time begins or ends. This is why using a named time zone (like America/New_York) is safer than relying on a fixed offset.