Module:Complex date/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 9:
This module is intended for creation of complex date phrases in variety of languages.
 
Once deployed, please do not modify this code without applying the changes first at Module:Complex date/sandbox and testing
at Module:Complex date/sandbox/testcases.
 
Authors and maintainers:
* User:Sn1per - first draft of the original version
* User:Jarekt - corrections and expansion of the original version
]]
 
Line 21:
local i18n = require('Module:i18n/complex date') -- used for translations of date related phrases
local ISOdate = require('Module:ISOdate')._ISOdate -- used for parsing dates in YYYY-MM-DD and related formats
local Calendar -- loaded lazily
 
-- ==================================================
Line 233:
-- based on string or numeric input calculate "Units" and "precision"
local precision
local dateNum = tonumber(dateStr)
if type(units)=='number' then
precision = units