[checkmk-commits] Extract timeperiod functions to dedicated module