English 中文(简体)
暂时搁置为愤怒
原标题:Storing current time as integer

我现在要把这个时候作为ger,再 per。 我知道,我需要时间,从窗口时间开始。 我知道窗口时间从何时开始? Jan 1st, 1601.

范围:

最佳回答

难道说是一种愤怒吗? 时间是否长? 如果是,便捷的回答是使用<代码>.Ticks在<代码>Datetime的标的上的财产。

还可以获得“最低”日期,由<明瓦莱财产支持。 然后,你可以利用正常的减员在两个日期之间取得时间差。

此外,仓储时间与仓储一样容易trick,因为(未签名)最高值只能储存约136年。 如果你需要解决,那么你需要使用很长的时间,或者至少要保证你能够适当选择起算日期。

www.un.org/Depts/DGACM/index_spanish.htm 为了回应你的意见,你可以储存时间,然后计算出这样的二次:

long Ticks1 = DateTime.Now.AddSeconds(-10).Ticks;
long Ticks2 = DateTime.Now.Ticks;
TimeSpan elapsedTime = TimeSpan.FromTicks(Ticks2 - Ticks1);
问题回答

从你喜欢的任何时候开始,你就可以把时间当作一种愤怒。 确实,它始终如此。 将贵重物品从贵重物品转换为时标物,在你选择的起算日期后,再添加储存在您的星体变数中的二元件,以回馈一个可使用的物体。 从日期改为你的价值,只是使用时间。 时间标注的左侧方法,即时标。

日值为12:00午夜,1,0001 Anno Domini (Common Era)至11:59:59 P.M.,12月31,999999 A.D. (C.E.)





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签