"incident of staying up all night," 1870, from the adverbial phrase; see all + night. By 1930 as "person who stays up all night."
Entries linking to all-nighter
all adj./adv.
Old English eall "every, entire, the whole quantity of" (adj.), "fully, wholly, entirely" (adv.), from Proto-Germanic *alnaz (source also of Old Frisian, Old High German al; German all, alle; Old Norse allr; Gothic alls), with no certain connection outside Germanic. As a noun, in Old English, "all that is, everything."
Combinations with all meaning "wholly, without limit" were common in Old English (such as eall-halig "all-holy," eall-mihtig "all-mighty") and the habit has continued. Middle English had al-wher "wherever; whenever" (early 14c.); al-soon "as soon as possible," al-what (c. 1300) "all sorts of things, whatever."
Of the common modern phrases with it, at all "in any way" is from mid-14c., and all "and everything (else)" is from 1530s, all but "everything short of" is from 1590s. First record of all out "to one's full powers" is by 1880. All clear as a signal of "no danger" is recorded from 1902. All right, indicative of assent or approval, is attested by 1837; the meaning "satisfactory, acceptable" is by 1939, from the notion of "turning out well."
The use of a, a' as an abbreviation of all (as in Burns' "A Man's a Man for A' that") is a modern Scottishism but has history in English to 13c.
night n.
late Old English niht (West Saxon neaht, Anglian næht, neht) "the dark part of a day; the night as a unit of time; darkness," also "absence of spiritual illumination, moral darkness, ignorance," from Proto-Germanic *nahts (source also of Old Saxon and Old High German naht, Old Frisian and Dutch nacht, German Nacht, Old Norse natt, Gothic nahts).
The Germanic words are from PIE *nekwt- "night" (source also of Greek nyx "a night," Latin nox, Old Irish nochd, Sanskrit naktam "at night," Lithuanian naktis "night," Old Church Slavonic nosti, Russian noch', Welsh henoid "tonight"), according to Watkins, probably from a verbal root *neg- "to be dark, be night." For spelling with -gh- see fight. The vowel indicates that the modern English word derives from oblique cases (genitive nihte, dative niht).
The fact that the Aryans have a common name for night, but not for day (q.v.), is due to the fact that they reckoned by nights. [Weekley]
Thus in Old English combinations night was "the night before (a certain day or feast day);" compare German Weihnachten "Christmas," literally "holy night." In early times, the day was held to begin at sunset, so Old English monanniht "Monday night" was the night before Monday, or what we would call Sunday night; so saeterniht "Friday night." The Greeks, by contrast, counted their days by mornings.
To work nights preserves the Old English genitive of time. Night soil "excrement" (1770) is so called because it was removed (from cesspools, etc.) after dark. Night train is attested from 1838; night-school from 1520s; night-life "habitual nocturnal carousing" is attested from 1852.