1855, from ice (n.) + age (n.). Perhaps translating German Eiszeit (1837). An earlier term in the same sense was glacial epoch (1841). Local scientific men had noticed from the late 18c. evidence that the Alpine glaciers once had been much larger; in the 1830s stray boulders, moraines, and polished bedrock in northern Europe (formerly interpreted as relics of catastrophic floods) began to be understood as revealing the former presence of a large ice cap there. When Agassiz, a convert to the theory, came to America in 1846 he found similar evidence in New England. The glacial theory and the notion that there had been several worldwide ice ages seems to have been generally accepted by the 1870s.
also alamode, 1640s, from French à la mode (15c.), literally "in the (prevailing) fashion" (see a la + mode (n.2)). In 17c., sometimes nativized as all-a-mode. Cookery sense in reference to a dessert served with ice cream is 1903, American English; earlier it was used of a kind of beef stew or soup (1753).
in the sports sense, 1879, originally in cricket, "taking three wickets on three consecutive deliveries;" extended to other sports c. 1909, especially ice hockey ("In an earlier contest we had handed Army a 6-2 defeat at West Point as Billy Sloane performed hockey's spectacular 'hat trick' by scoring three goals" ["Princeton Alumni Weekly," Feb. 10, 1941]). So called allegedly because it entitled the bowler to receive a hat from his club commemorating the feat (or entitled him to pass the hat for a cash collection), but the term probably has been influenced by the image of a conjurer pulling objects from his hat (an act attested by 1876). The term was used earlier for a different sort of magic trick:
Place a glass of liquor on the table, put a hat over it, and say, "I will engage to drink every drop of that liquor, and yet I'll not touch the hat." You then get under the table; and after giving three knocks, you make a noise with your mouth, as if you were swallowing the liquor. Then, getting from under the table, say "Now, gentlemen, be pleased to look." Some one, eager to see if you have drunk the liquor, will raise the hat; when you instantly take the glass and swallow the contents, saying, "Gentlemen I have fulfilled my promise: you are all witnesses that I did not touch the hat." ["Wit and Wisdom," London, 1860]