如何获得通过C#或C ++实际日期(不系统日期)? [英] how to get real date (not system date) by c# or c++?

查看:78
本文介绍了如何获得通过C#或C ++实际日期(不系统日期)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能获得真正的日期(不系统日期),而互联网有联系吗?
我开发的C#我的申请。
DateTime.Now获取系统日期,但我想知道真正的日期,因为系统日期可能是错误的。

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?

推荐答案

如果系统日期是错误的,那么你的应用程序从别的地方得到正确的日期。这意味着,外的资源。它可以通过网络,也可能是您的网络中的另一台服务器,或者你可以手动输入。有没有神奇的解决方案。

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.

这篇关于如何获得通过C#或C ++实际日期(不系统日期)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆