I need to get the current time from Internet using C language. Any help is appreciated, hopefully a source code sample. Thank you in advance.
http://beej.us/guide/bgnet/
When you've figured out how to talk to the network, read this http://tools.ietf.org/html/rfc1305
If you're running Windows XP and syncing to time.windows.com, try this:
#include <stdio.h> #include <stdlib.h> int main() { system("w32tm /resync"); system("pause"); return 0; }