Modul:Zeit: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 258: Zeile 258:
differenz = os.difftime ( os.time( { year = jahr, month = bis_monat, day = bis_tag } ), os.time ( { year = jahr, month = '01', day = '01' } ) )
differenz = os.difftime ( os.time( { year = jahr, month = bis_monat, day = bis_tag } ), os.time ( { year = jahr, month = '01', day = '01' } ) )
local bis = math.floor ( differenz / 86400 +0.5 )
local bis = math.floor ( differenz / 86400 +0.5 )
if von > bis then
if jahr / 4 == math.floor ( jahr / 4 ) then von = von - 357 else von = von - 356 end
end
if heute >= von and heute <= bis then ausgabe = inhalt end
if heute >= von and heute <= bis then ausgabe = inhalt end
Anonymer Benutzer