The system on which the Japanese era names are based originated in China in 140 BC, and was adopted by Japan in AD 645, during the reign of Emperor Kōtoku.
In historical practice, starts whenever the emperor chooses; and the first year continues until the next lunar new year, which is understood to be the start of the nengō's second year [REF].