"dipavali" was mentioned in jain books as the date of the "nirvana" of mahavira. in fact, the oldest reference to diwali is a related word, dipalikaya, which occurs in harivamsa purana, written by acharya jinasena and composed in the shaka samvat era in the year 705.