需要获得独立于系统日期和互联网的日期 [英] need to get date independent of the system date and also internet

查看:78
本文介绍了需要获得独立于系统日期和互联网的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是在安装操作系统时,它将自动检测日期.这怎么可能.请问是否有任何代码可用于此,然后请在此处发布.

我需要获取独立于系统日期和互联网的日期.但这必须取决于地区.这意味着,如果我更改系统日期并运行程序,则我必须获取确切的日期,而不是系统日期.

My question is while installing the Operating system, it will detect the date automatically. How is it possible. Does any code is available for that then plz post here.

I need to get the date which is independent of the system date and also independent of the internet. But it must be dependent on the region. It means if i change the system date and run the program then i must get the exact date but not the system date. If any code is there for that plz post here.

推荐答案

您肯定不会在C#中安装操作系统. C#在安装过程中不存在,我不知道何时在安装过程中安装它.

您所说的是荒谬的.这是胡言乱语,没有任何意义.安装与它有什么关系?除了从网络或从网络获取日期以外,如何检测不是系统日期的日期.我认为您根本不知道计算机的工作方式,或者您会理解您的请求多么不合逻辑和不可能.

我看到你好几天以来一直在问这个愚蠢的问题.停下来.醒来-阅读答案,并理解它们都是正确的.
You''re not installing an operating system in C#, surely. C# is not present during install, I don''t know when it''s installed as part of the install process.

What you''re saying is nonsensical. It''s drivel, and it makes no sense. What does install have to do with it ? How can you detect a date that is not the system date, except you get it from the web, or perhaps from a network. I think you have no idea at all how computers work, or you''d understand how illogical and impossible your request is.

I see you''ve been asking variations on this idiotic question for days. Stop it. Wake up - read the answers and understand that they are all correct.


我知道这是什么.有一个英语通用术语,听起来像语音,但没有实际意义": http://en.wikipedia. org/wiki/Gibberish [ ^ ].

—SA
I know what is this. There is "a generic term in English for talking that sounds like speech, but carries no actual meaning": http://en.wikipedia.org/wiki/Gibberish[^].

—SA


您有三个选择:
1.系统日期 2.来自互联网时间服务器
3.让用户输入.

不使用这些工具之一,您如何期望得到它?
You have three choices:
1. the system date
2. from an internet time server
3. Get the user to type it in.

How exactly do you expect to get it without using one of these facilities?


这篇关于需要获得独立于系统日期和互联网的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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