DST shifts, half-hour zones, the international date line. Time math has surprisingly many edge cases.
Ask ten experts and you will get twelve answers. The underlying math, thankfully, only has one. DST shifts, half-hour zones, the international date line. Time math has surprisingly many edge cases.
UTC is the reference. Each zone is an offset. New York = UTC-5 (winter) or UTC-4 (summer).
India UTC+5:30, Nepal UTC+5:45, parts of Australia UTC+9:30.
Northern hemisphere shifts in March/November, southern in September/April. Some countries don't shift at all.
Why is there a date line? Earth rotates 360° = 24 hours, so the date has to change somewhere. The 180° meridian was the convenient choice.
What's UTC vs GMT? GMT is a time zone, UTC is a time standard. ~1 second apart at most for practical purposes.
The math is the easy part. Acting on what it tells you is where the real win lives.