FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Jörg am 01 Mai 2022, 11:47:57

Titel: Datumsformatierung für Logfile
Beitrag von: Jörg am 01 Mai 2022, 11:47:57
Hallo zusammen,
hab mal eine Frage zur Datumsformatierung :)

Mit TEST-%Y.log            wird einmal pro Jahr ein neues Logfile erstellt
Mit TEST-%Y-%m.log    wird einmal pro Monat ein neues Logfile erstellt

Gibt es eine Möglichkeit, das ein Logfile pro Woche eretellt werden kann?
Z.B.: TEST-%Y-%m-%kw.log


LG Jörg
Titel: Antw:Datumsformatierung für Logfile
Beitrag von: Nobbynews am 01 Mai 2022, 12:09:29
Schon mal in die commandref geschaut??

Zitat%U Wochennummer des Jahres, wobei Wochenbeginn = Sonntag (00..53)
%W Wochennummer des Jahres, wobei Wochenbeginn = Montag (00..53)   
Titel: Antw:Datumsformatierung für Logfile
Beitrag von: Jörg am 01 Mai 2022, 17:42:49
Vielen Dank für den Hinweis! :)

LG Jörg