NTP server best way to act on retrieve data

depending on the controller you are using you can define a callback which gets executed each time the clock is getting synced with NTP.

Which Controller are you using?
If it is not an ESP32 or ESP8266 - which code are you using?