Module:Age: Difference between revisions
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: | Line 148: | ||
h = { 'H', id = 'h' }, | h = { 'H', id = 'h' }, | ||
hm = { 'H', 'M', id = 'hm' }, | hm = { 'H', 'M', id = 'hm' }, | ||
hms = { 'H', 'M', 'S', id = 'hms' }, | |||
d = { 'd', id = 'd' }, | d = { 'd', id = 'd' }, | ||
dh = { 'd', 'H', id = 'dh' }, | dh = { 'd', 'H', id = 'dh' }, | ||
dhm = { 'd', 'H', 'M', id = 'dhm' }, | dhm = { 'd', 'H', 'M', id = 'dhm' }, | ||
dhms = { 'd', 'H', 'M', 'S', id = 'dhms' }, | |||
ymdh = { 'y', 'm', 'd', 'H', id = 'ymdh' }, | ymdh = { 'y', 'm', 'd', 'H', id = 'ymdh' }, | ||
ymdhm = { 'y', 'm', 'd', 'H', 'M', id = 'ymdhm' }, | ymdhm = { 'y', 'm', 'd', 'H', 'M', id = 'ymdhm' }, | ||
Line 294: | Line 296: | ||
H = 'hour', | H = 'hour', | ||
M = 'minute', | M = 'minute', | ||
S = 'second', | |||
}, | }, | ||
abbr_on = { | abbr_on = { | ||
Line 302: | Line 305: | ||
H = 'h', | H = 'h', | ||
M = 'm', | M = 'm', | ||
S = 's', | |||
}, | }, | ||
abbr_infant = { -- for {{age for infant}} | abbr_infant = { -- for {{age for infant}} | ||
Line 312: | Line 316: | ||
H = 'hr', | H = 'hr', | ||
M = 'min', | M = 'min', | ||
S = 'sec', | |||
}, | }, | ||
abbr_raw = {}, | abbr_raw = {}, |