Modul:DateTime: Unterschied zwischen den Versionen
2020-01-01, https://de.wikipedia.org/w/index.php?title=Wikipedia:Administratoren/Anfragen&curid=6974524&diff=198261848&oldid=198260830
(gemäß Wunsch von WP:AAF aktuaisiert.) |
(2020-01-01, https://de.wikipedia.org/w/index.php?title=Wikipedia:Administratoren/Anfragen&curid=6974524&diff=198261848&oldid=198260830) |
||
Zeile 1: | Zeile 1: | ||
local DateTime = { serial = " | local DateTime = { serial = "2020-01-01", | ||
suite = "DateTime", | suite = "DateTime", | ||
item = 20652535 } | item = 20652535 } | ||
Zeile 1.376: | Zeile 1.376: | ||
for subk, subv in pairs( v ) do | for subk, subv in pairs( v ) do | ||
wk[ subk ] = subv | wk[ subk ] = subv | ||
end -- for k, v | end -- for k, v | ||
else | else | ||
World[ k ] = v | World[ k ] = v | ||
Zeile 1.838: | Zeile 1.838: | ||
stamp = string.format( "%d %s", self.dom, stamp ) | stamp = string.format( "%d %s", self.dom, stamp ) | ||
end | end | ||
if ask and ask:find( "Mon4" ) then | if ask and ask:find( "Mon4", 1, true ) then | ||
local mon4 = World.months4[ opts.lang ] | local mon4 = World.months4[ opts.lang ] | ||
if mon4 | if mon4 and mon4[ self.month ] then | ||
limit4 = true | |||
end | end | ||
end | end | ||
Zeile 1.890: | Zeile 1.888: | ||
if self.month then | if self.month then | ||
local bucket, m, suite, x | local bucket, m, suite, x | ||
if show:find( "F" ) then | if show:find( "F", 1, true ) then | ||
suite = "monthsLong" | suite = "monthsLong" | ||
elseif show:find( "M" ) then | elseif show:find( "M", 1, true ) then | ||
suite = "monthsAbbr" | suite = "monthsAbbr" | ||
end | end | ||
Zeile 2.012: | Zeile 2.010: | ||
-- Returns: | -- Returns: | ||
-- string | -- string | ||
local dels = { false, "", "-", "-", "", " | local dels = { false, "", "-", "-", "", "", ":", ":", ".", "" } | ||
local wids = { false, 4, 2, 2, 2, 2, | local wids = { false, 4, 2, 2, 2, 2, 2, 2, 3, 3 } | ||
local s = "" | local s = "" | ||
local n, r, spec | local n, r, spec | ||
Zeile 2.041: | Zeile 2.039: | ||
end | end | ||
end | end | ||
r = r:gsub( "%.$", "" ) | |||
return r | return r | ||
end -- Prototypes.tostring() | end -- Prototypes.tostring() | ||
Zeile 2.110: | Zeile 2.109: | ||
if not ask or ask == "" then | if not ask or ask == "" then | ||
r1 = "c" | r1 = "c" | ||
elseif ask == "*" then | |||
if World.standard then | |||
r1 = World.standard | |||
else | |||
r1 = "c" | |||
end | |||
else | else | ||
local template = World.templates[ ask ] | local template = World.templates[ ask ] | ||
Zeile 2.163: | Zeile 2.168: | ||
end | end | ||
end | end | ||
if low or ask:find( "hh:mm:ss" ) then | if low or ask:find( "hh:mm:ss", 1, true ) then | ||
if stamp then | if stamp then | ||
r1 = string.format( "%s %s", r1, stamp ) | r1 = string.format( "%s %s", r1, stamp ) | ||
Zeile 2.219: | Zeile 2.224: | ||
if #s == 1 then | if #s == 1 then | ||
-- "YXWVUTSRQPONZABCDEFGHIKLM" | -- "YXWVUTSRQPONZABCDEFGHIKLM" | ||
move = World.zones[ "!" ]:find( s ) | move = World.zones[ "!" ]:find( s, 1, true ) | ||
if move then | if move then | ||
move = ( move - 13 ) * 100 | move = ( move - 13 ) * 100 |