Anonymous user
Module:Citation/CS1/Date validation: Difference between revisions
julian date fix;
(username removed) m (1 revision imported) |
WordPress>Trappist the monk (julian date fix;) |
||
Line 327: | Line 327: | ||
input.year2 = tonumber (input.year2) or lang_object:parseFormattedNumber (input.year2); -- COinS dates are pseudo-ISO 8601 so convert to Arabic numerals | input.year2 = tonumber (input.year2) or lang_object:parseFormattedNumber (input.year2); -- COinS dates are pseudo-ISO 8601 so convert to Arabic numerals | ||
if ((1582 == input.year) and (10 > tonumber(input.month))) or (1582 > input.year) then -- if a Julian calendar date | |||
if | |||
tCOinS_date.rftdate = tostring (input.year); -- &rft.date gets year only | tCOinS_date.rftdate = tostring (input.year); -- &rft.date gets year only | ||
return; -- done | return; -- done |