Function to retrieve current time on ESP8266?

the time is kept by TimeLib locally using millis() and the Ntp lib sets the initial time and syncs the time in set interval