; credit for the original clock implementation: https://github.com/StarNumber12046/xovi-qmd-extensions/blob/main/quickSettingsClock.qmd
AFFECT [[12542166428983872557]]
    IMPORT [[7082573613689.5972775.6504315758]] [[180922.180921]]

    TRAVERSE [[7711468349764991]] > [[6502786168]] > [[8397788359424131273]] > [[14125623155555875541]]#[[233718721544006]]

        LOCATE AFTER [[6502786168]] > [[425121728314878811.15389500557572665857]]#[[6026822765657717152]]

        INSERT {
            ~&6502786168&~ {
                ~&7081629735527&~.~&17520348323745447649&~: ~&7082020628281&~.~&10286380502125731829&~
                ~&7081629735527&~.~&8399743405844438450&~: ~&254477762679831355&~.~&214603824602&~.~&7713684474795983&~.~&7713442318223278&~.~&233740248806464&~.~&7083363878252&~
                ~&7081629735527&~.~&499747351624466981&~: ~&254477762679831355&~.~&214603824602&~.~&7713684474795983&~.~&7713442318223278&~.~&233740248806464&~.~&7083363878252&~
                ~&7081629735527&~.~&254529418434902000&~: ~&6504329801&~

                ~&14397210151462632996&~ {
                    ~&5972374&~: quickSettingsClock
                    ~&233721384511543&~ {
                        ~&6504027668&~: ~&7083038346995&~.~&6504027668&~
                        ~&3441383163516681764&~: ~&7083038346995&~.~&3441383163516681764&~
                    }

                    property ~&6503679477&~ showSeconds: ~&214625660372&~
                    property ~&7083178290016&~ minuteFormat: "dd/MM hh:mm"
                    property ~&7083178290016&~ secondFormat: "dd/MM hh:mm:ss"
                    property ~&197088788&~ minuteInterval: 60000
                    property ~&197088788&~ secondInterval: 1000

                    ~&6504315758&~: ~&5971598&~.~&6460516198169535423&~(       new        ~&6502586279&~(), minuteFormat)

                    function updateClock() {
                        ~&6504315758&~ = ~&5971598&~.~&6460516198169535423&~(       new        ~&6502586279&~(), showSeconds ? secondFormat : minuteFormat);
                    }

                    ~&254480451320573660&~.~&495334332051582499&~: {
                        updateClock();
                    }

                    onShowSecondsChanged: {
                        quickSettingsClockTimer.~&233743006639214&~();
                        updateClock();
                    }

                    ~&214604601930&~ {
                        ~&5972374&~: quickSettingsClockTimer
                        ~&7713147298280334&~: quickSettingsClock.showSeconds ? quickSettingsClock.secondInterval : quickSettingsClock.minuteInterval
                        ~&7083121289162&~: ~&6504329801&~
                        ~&233743626668842&~: ~&6504329801&~

                        ~&495358363329399331&~: {
                            quickSettingsClock.updateClock();
                        }
                    }

                    ~&254494525842443467&~ {
                        ~&233721384511543&~.~&6503816592&~: ~&7083038346995&~
                        ~&477346538929698200&~: ~&5971598&~.PointingHandCursor
                        ~&254542236275632405&~: {
                            quickSettingsClock.showSeconds = !quickSettingsClock.showSeconds;
                        }
                    }
                }
            }
        }

    END TRAVERSE

END AFFECT
