Modul:Zeit: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 141: Zeile 141:
local ausgabe = funcParams['std']
local ausgabe = funcParams['std']
if paramsTypen[typ] == nil then errorStr = check._error ('Falscher Wert für Parameter <emp>typ</emp>: <emp>' .. typ .. '</emp>', 'Zeit' ) end
if paramsTypen[typ] == nil then errorStr = check._error ('Falscher Wert für Parameter <em>typ</em>: <em>' .. typ .. '</em>', 'Zeit' ) end
if typ == 'meteorologisch' then
if typ == 'meteorologisch' then
local monat = lang:formatDate ( 'm' )
local monat = lang:formatDate ( 'm' )
Zeile 158: Zeile 158:
end
end
if typ == 'astronomisch' then
if typ == 'astronomisch' then
local jahr = lang:formatDate ( 'Y' )
local differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = '01', day = '01' } ) )
ausgabe = differenz
end
end
Anonymer Benutzer