Reimplement time switch

Signed-off-by: JWhy <jwhy@jwhy.de>