Answer the question
In order to leave comments, you need to log in
How to write a utility that synchronizes time with time.yandex.ru?
I often use snapshots in virtualbox, but I'm too lazy to change the time to the real one every time. Tell me how to write a utility, when launched, the time will be synchronized with the time.yandex.ru server. What should be used?
Answer the question
In order to leave comments, you need to log in
Firstly, can you use the capabilities of the OS that you run in the virtual machine to synchronize time? What by the way?
Secondly, who said that you can synchronize with the site time.yandex.ru in any way? Why with him?
Thirdly, if you really want your own utility in Delphi, then among the Indy components, look for TIdSNTP to get the time (of course, from the ntp server, and not from Yandex) and, if we are talking about Windows, use the SetSystemTime winapi function to set the time.
ps And in general, I misunderstood something. It seems that by default virtualbox itself synchronizes the time of the guest and the host. People mostly ask how to turn it off. Why don't you?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question