Module:Age/sandbox: Difference between revisions

Content deleted Content added
support show=dhms and show=hms per request at Template talk:Time interval
copy from Module:Age and tweak comment
Line 540:
age_yd = { -- {{age in years and days}}
show = 'yd',
format = 'format_commas',
sep = args.sep ~= 'and' and 'sep_comma' or nil,
},
age_yd_nts = { -- {{age in years and days nts}}
show = 'yd',
format = 'format_commas',
sep = args.sep ~= 'and' and 'sep_comma' or nil,
sortable = 'on',
Line 605 ⟶ 611:
 
local function date_to_gsd(frame)
-- ThisImplement implements {{gregorian[[Template:Gregorian serial date}}]].
-- Return Gregorian serial date of the given date, or the current date.
-- The returned value is negative for dates before 1 January 1 AD
Line 643 ⟶ 649:
 
local function time_interval(frame)
-- ThisImplement implements {{time[[Template:Time interval}}]].
-- There are two positional arguments: date1, date2.
-- The default for each is the current date and time.