DST shifts, half-hour zones, the international date line. Time math has surprisingly many edge cases.