Ephemeral once had a precise length: one day. It was not poetry but a doctor's term.
Merriam-Webster traces the word to Greek ephemeros, "lasting a day," from epi-, "on," and hemera, "day." Dictionary.com breaks it down the same way and glosses the Greek as "short-lived, lasting a day." English added its own suffix, -al, to make the adjective.
The word arrived in English as medicine. Merriam-Webster's first date is 1576, for the sense "lasting one day only." Its usage note explains that the word was first applied to short-term fevers. Dictionary.com also calls it "originally a medical term" and dates it to 1570 to 1580. A physician who called a fever ephemeral meant it would be gone by tomorrow.
From the sickroom the word spread to anything brief. Merriam-Webster's first definition is now simply "lasting a very short time." It also lists a sense for things "devoted to what is of temporary interest." A noun followed in 1807, for something that lasts a very short time, and in botany it names a plant that sprouts, flowers and dies back within days.
Nature supplied the perfect mascot. The adult mayfly lives for hours, and Merriam-Webster notes it dies "within the span of a few short hours." Scientists named the whole order Ephemeroptera for this reason. The University of California Museum of Paleontology says the name comes from ephemeros, "lasting but a day." The adult "mates and dies within a few hours to a day," after many nymph stages spent in water.
The same Greek word gave English two other useful terms. Ephemera, from the Greek neuter plural, means things of no lasting significance. Collectors use it for posters, tickets and other printed throwaways.
Ephemeris went the opposite way. It began as Latin for a diary, a daily record, borrowed from Greek ephemeris. Merriam-Webster dates the English word to 1508 for a table giving the positions of a planet or star at regular intervals. Astronomers still publish ephemerides, which are anything but short-lived.