Modul:Zeit: Unterschied zwischen den Versionen
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 254: | Zeile 254: | ||
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' } ) ) | ||
local 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 = | differenz = os.difftime ( os.time( { year = jahr, month = von_monat, day = von_tag } ), os.time ( { year = jahr, month = '01', day = '01' } ) ) | ||
local 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 = | 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 ) | ||