There are 24 standard time zones, each separated by one hour. But the real answer is more complicated: when you include half-hour and quarter-hour offsets, the world actually uses over 38 distinct UTC offsets.
In theory, the Earth is divided into 24 zones of 15 degrees longitude each, running from UTC-12 to UTC+12. Each zone differs by exactly one hour from its neighbors. This system was formalized at the 1884 International Meridian Conference.
In practice, time zone boundaries do not follow neat lines of longitude. They bend around national and regional borders so that a country (or a state within a country) can keep a single clock.
Several countries use non-standard offsets that fall between the 24 whole-hour zones:
These countries chose a single zone for national unity and administrative simplicity. The trade-off is that sunrise and sunset times can vary dramatically from east to west.