Modul:Zeit: Unterschied zwischen den Versionen
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 253: | Zeile 253: | ||
local differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = '01', day = '01' } ) ) | local differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = '01', day = '01' } ) ) | ||
heute = math.floor ( differenz / 86400 +0.5 ) | local heute = math.floor ( differenz / 86400 +0.5 ) | ||
differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = von_monat, day = von_tag } ) ) | differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = von_monat, day = von_tag } ) ) | ||
von = math.floor ( differenz / 86400 +0.5 ) | local von = math.floor ( differenz / 86400 +0.5 ) | ||
differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = bis_monat, day = bis_tag } ) ) | differenz = os.difftime ( os.time(), os.time ( { year = jahr, month = bis_monat, day = bis_tag } ) ) | ||
bis = math.floor ( differenz / 86400 +0.5 ) | local bis = math.floor ( differenz / 86400 +0.5 ) | ||
if heute >= von and heute <= bis then ausgabe = inhalt end | if heute >= von and heute <= bis then ausgabe = inhalt end | ||