Closed grantwilk closed 1 year ago
Hello,
Trying to read through and understand this implementation so I can use it for a project. Out of curiosity, how did you derive the constant 2208988800 that is used in the following line of code from this example?
2208988800
uint32_t seconds = ((last_ntp_time >> 32) & 0xffffffff)-2208988800;
Thanks!
Hi,
It is a NTP to UNIX timestamp conversion formula, difference between 1900 and 1970 in seconds
Ahhh that makes sense. Thank you for your quick response! Much appreciated.
Hello,
Trying to read through and understand this implementation so I can use it for a project. Out of curiosity, how did you derive the constant
2208988800
that is used in the following line of code from this example?Thanks!