Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get real date (not system date) by c# or c++?

Tags:

c#

Is it possible to get real date (not system date) without any connection to internet? I developed my application by C#. DateTime.Now gets system date but I want to know real date because system date may be wrong.

Is it possible? How to do this?

like image 541
user559736 Avatar asked Dec 04 '22 22:12

user559736


1 Answers

If the system date is wrong, then your application has to get the correct date from somewhere else. That means and outside resource. It can be over the web, it could be another server in your network, or you could enter it manually. There are no magical solutions.

like image 151
System Down Avatar answered Dec 07 '22 23:12

System Down