When Did the Battle of Bunker Hill End?

The Battle of Bunker Hill ended on June 17, 1775. ‘Don’t fire until you see the whites of their eyes’, became a famous quote during this battle, though it is not known who said it.