Module:Date Stuff: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 54: Line 54:


   --Converts the first given date to a long date
   --Converts the first given date to a long date
   convertedDate = convertDate(birthDate)
   convertedBirthDate = convertDate(birthDate)
  convertedCurrentDate = convertDate(currentDate)


   --Splits the first date given
   --Splits the first date given
Line 89: Line 90:
   --Takes the first date and adds the age to the end
   --Takes the first date and adds the age to the end
   if status == "alive" then
   if status == "alive" then
     dateAge = convertedDate.." (age "..age..")"
     dateAge = convertedBirthDate.." (age "..age..")"
   elseif status == "dead" then
   elseif status == "dead" then
     dateAge = convertedDate.." (aged "..age..")"
     dateAge = convertedCurrentDate.." (aged "..age..")"
   else
   else
     error("Invalid Status")
     error("Invalid Status")

Navigation menu