How to get Datetime from the internet?

Asked

Viewed 43 times

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?

  • You are referring to an object of type Datetime?

  • 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 and 16/08/2016 19:25 I’m not sure I made myself clear.

  • @Florida think it’s your lucky day =D has several Client Ntps, can choose one of them and start.

  • 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

  • 1

    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.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.