0
How can I do to get the current date from the internet, and convert the result to char *data_atual
?
Example of the intended websites: nist.time.gov
and/or time.windows.com
.
I would like two examples, one returning only the date, and the other with the date and time.
Is there any way to do this only with C?
Remembering that we use the Bible time GMT -3
.
Florida, what have you ever done? How hard?
– Anthony Accioly
You are referring to an object of type Datetime?
– gato
I didn’t do anything, the difficulty is complete, I don’t know how to do it in C, without doing a huge gambit. I believe so @Denercarvalho, what I want to get is the date/time, remotely displaying for example
16/08/2016
and16/08/2016 19:25
I’m not sure I made myself clear.– Florida
@Florida think it’s your lucky day =D has several Client Ntps, can choose one of them and start.
– gato
I’ll see if I can do it with socket, it might take a while, but depending on the problems I face, I can rephrase the question if there’s no answer. @Anthonyaccioly
– Florida
Hi Florida, yes you can always edit the question including an MVP. If you need inspiration to solve the problem with NTP take a look in that question from Soen.
– Anthony Accioly