Module:Birthday:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第65行: | 第65行: | ||
if currentMonth < birthMonth or (currentMonth == birthMonth and currentDay < birthDay) then | if currentMonth < birthMonth or (currentMonth == birthMonth and currentDay < birthDay) then | ||
age = age - 1 | age = age - 1 | ||
age_text = string.format("%s岁", age) | |||
end | end | ||
return string.format("%s (%d)", dateString, | return string.format("%s (%d)", dateString, age_text) | ||
else | else | ||
-- 如果月份是英文,且缺失年份或日期 | -- 如果月份是英文,且缺失年份或日期 |