How to make ESP8266 things happen on specific times?

Could not make much of it...
But I added a debug command e3 to my sketch like this:

	String TimeMsg = "";
.... 
               case '3': //Return current NTP time
                    #ifdef USE_NTP_TIME
                        time_t CurrTime;
                        CurrTime = NTP.getTime();  //Time
                        ltoa(CurrTime, msg, 10);
                        strcat(msg, " = ");
                        TimeMsg = NTP.getTimeDateString();
                        strcat(msg, TimeMsg.c_str());
                    #else
                        strcpy(msg, "NTP time undefined");
                    #endif
                    ReplyCmd(msg, strlen(msg));
                    break;

When I run the command e3 I get these responses:

1544354241 = 2018-12-09 11:17:20
1544354254 = 2018-12-09 11:17:34
1544354271 = 2018-12-09 11:17:51
1544354345 = 2018-12-09 11:19:05

So the NTP.getTime() seems to get a value that increments by the second...
So now I "just" have to figure out how to calculate the offset to midnight of the returned value...
Seems like rather tedious work to scan the date string for the hour, minute, second items.
Is there not a built-in function to truncate the day part of a time_t value retrieved as shown above?
Integer modulo CurrTime % 84600 maybe?