4,595
edits
No edit summary |
No edit summary |
||
Line 85: | Line 85: | ||
function p._age(args) | function p._age(args) | ||
birthDate = convertShortDate(args[1], args[4]) | birthDate = convertShortDate(args[1], args[4]) | ||
secondDate = convertShortDate(args[2], args[4]) | secondDate = convertShortDate(args[2], args[4]) | ||
status = args[3] | status = args[3] | ||
Line 114: | Line 113: | ||
--Determines if age or aged is required | --Determines if age or aged is required | ||
if status == "alive" then | if status == "alive" then | ||
-- return writeDate(birthDate).." (age "..age..")" | |||
return birthDate | |||
elseif status == "dead" then | elseif status == "dead" then | ||
return writeDate(secondDate).." (aged "..age..")" | return writeDate(secondDate).." (aged "..age..")" |