This code is used to realize a User-Interface-Configurable Timeclock in openHAB. Multible time-/trigger-sources are possible -> Time, Astro, Calendar.
The complete explanation you can find at: https://community.openhab.org/t/sitemap-configurable-timer-and-astrotimer-timeclock-astrotimeclock/86813