NTP server on nodemcu v2

Hello, can someone explain to me what makes this piece of code in void loop(), i cant understand.

so more or less, not line by line

thanks ;]

The comments in the code explains it well.