模块:ASADCalendarConvertion:修订间差异

添加146字节 、​ 2025年6月6日 (星期五)
无编辑摘要
(已保护“模块:ASADCalendarConvertion”:​日历转换函数([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
无编辑摘要
 
第74行: 第74行:
     local month = tonumber(frame.args[2])
     local month = tonumber(frame.args[2])
     local day = tonumber(frame.args[3])
     local day = tonumber(frame.args[3])
    if not year and not month and not day then
        return ""
    end
     local y, m, d = from_tdn(to_jdn(year, month, day) - AD_st + AS_st)
     local y, m, d = from_tdn(to_jdn(year, month, day) - AD_st + AS_st)
     return format_date(y, m, d, "AS")
     return format_date(y, m, d, "AS")
第82行: 第85行:
     local month = tonumber(frame.args[2])
     local month = tonumber(frame.args[2])
     local day = tonumber(frame.args[3])
     local day = tonumber(frame.args[3])
    if not year and not month and not day then
        return ""
    end
     local y, m, d = from_jdn(to_tdn(year, month, day) - AS_st + AD_st)
     local y, m, d = from_jdn(to_tdn(year, month, day) - AS_st + AD_st)
     return format_date(y, m, d, "AD")
     return format_date(y, m, d, "AD")