For LX5V, you can use count and timer to do a long time timer.

Same as the example, T0 is a 100ms timer, [OUT T0 K10] make the timer become a 1S timer.
Using timing, D0 increases by 1 after every 1S.
And use count function ,we can record the number of seconds to make further judgments about the time.
03 Arithmetic operation - XWiki

Use [OUT T0 K3600] to create a 1hour timer.
D0 increases by 1 after every 24 hour, D1 increases by 1 after every 7 Day, then Y0 become a 1 week timer.