Modul:DateTime: Unterschied zwischen den Versionen
update #unix
(update) |
(update #unix) |
||
Zeile 1: | Zeile 1: | ||
--[=[ 2014- | --[=[ 2014-09-20 | ||
Date and time utilities | Date and time utilities | ||
]=] | ]=] | ||
Zeile 806: | Zeile 806: | ||
stamp = mw.getCurrentFrame():callParserFunction( "#timel", | stamp = mw.getCurrentFrame():callParserFunction( "#timel", | ||
"c" ) | "c" ) | ||
else | |||
local seconds = stamp:match( "^#(%d+)$" ) | |||
if seconds then | |||
stamp = os.date( "!%Y-%m-%dT%H:%M:%S", | |||
tonumber( seconds ) ) | |||
end | |||
end | end | ||
l, r = pcall( Private.fetch, stamp, slang ) | l, r = pcall( Private.fetch, stamp, slang ) | ||
Zeile 933: | Zeile 939: | ||
else | else | ||
min = 0 | min = 0 | ||
end | end | ||
ret = ( v >= min and v <= dk.max | ret = ( v >= min and v <= dk.max | ||
and math.floor( v ) == v ) | and math.floor( v ) == v ) |