Function to retrieve current time on ESP8266?

my sketch with ntp time