Module:Age: Difference between revisions

128 bytes added ,  7 years ago
support show=dhms and show=hms per request at Template talk:Time interval
(new show=h, show=hm where days not wanted; show error for an unsupported show (occurs with partial dates))
(support show=dhms and show=hms per request at Template talk:Time interval)
Line 148:
h = { 'H', id = 'h' },
hm = { 'H', 'M', id = 'hm' },
hms = { 'H', 'M', 'S', id = 'hms' },
d = { 'd', id = 'd' },
dh = { 'd', 'H', id = 'dh' },
dhm = { 'd', 'H', 'M', id = 'dhm' },
dhms = { 'd', 'H', 'M', 'S', id = 'dhms' },
ymdh = { 'y', 'm', 'd', 'H', id = 'ymdh' },
ymdhm = { 'y', 'm', 'd', 'H', 'M', id = 'ymdhm' },
Line 294 ⟶ 296:
H = 'hour',
M = 'minute',
S = 'second',
},
abbr_on = {
Line 302 ⟶ 305:
H = 'h',
M = 'm',
S = 's',
},
abbr_infant = { -- for {{age for infant}}
Line 312 ⟶ 316:
H = 'hr',
M = 'min',
S = 'sec',
},
abbr_raw = {},
Anonymous user