The term dates from around 1600 during the Thirty Years' War in the Low Countries (Belgium and the Netherlands).
Over the years, the process became more of a show and often included the playing of the first post at 21:30 hrs and the last post at 22:00.