dateteime减去奇怪的值 [英] dateteime subtract strange value

查看:77
本文介绍了dateteime减去奇怪的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么选择Now.Date.Subtract(New Date(2000,1,1))。Days返回731529 ??

这是一个太大的价值了!我的方面是1030-1100 ....

Why Now.Date.Subtract(New Date(2000, 1, 1)).Days returns 731529??
It is a too big value a think! I aspect something as 1030-1100....


推荐答案

" Trapulo" <无********** @ qui.it> schrieb
"Trapulo" <no**********@qui.it> schrieb
为什么选择Now.Date.Subtract(New Date(2000,1,1))。Days返回731529 ??


你如何显示价值?

这是一个太大的价值了!我的方面是1030-1100 ......
Why Now.Date.Subtract(New Date(2000, 1, 1)).Days returns 731529??
How do you display the value?
It is a too big value a think! I aspect something as 1030-1100....




你的表达式在这里返回1410。 (框架1.1)

-

Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



Your expression returns 1410 here. (Framework 1.1)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


" Armin Zingler" < AZ ******* @ freenet.de>在消息中写道

news:eG **************** @ TK2MSFTNGP12.phx.gbl ...
"Armin Zingler" <az*******@freenet.de> wrote in message
news:eG****************@TK2MSFTNGP12.phx.gbl...
" Trapulo" ; <无********** @ qui.it> schrieb
"Trapulo" <no**********@qui.it> schrieb
为什么选择Now.Date.Subtract(New Date(2000,1,1))。Days返回731529 ??
如何显示值?
Why Now.Date.Subtract(New Date(2000, 1, 1)).Days returns 731529??
How do you display the value?



命令窗口上的
(我正在调试......):


? Now.Date.Subtract(New Date(2000,1,1))。Days



on command window (I''m debugging... ) :

? Now.Date.Subtract(New Date(2000, 1, 1)).Days

这是一个太大的价值了!我的方面是1030-1100 ......
It is a too big value a think! I aspect something as 1030-1100....



你的表达式在这里返回1410。 (框架1.1)



Your expression returns 1410 here. (Framework 1.1)




看来是对的。我也在使用1.1.


: - (((((



It seems right. I''m using 1.1 too.

:-(((((((((((((((

< br>

" Trapulo" no ********** @ qui.it> schrieb
"Trapulo" <no**********@qui.it> schrieb

如何你在命令窗口显示值?

How do you display the value?



(我正在调试......):

?Now.Date.Subtract(New Date( 2000,1,1))。天



on command window (I''m debugging... ) :

? Now.Date.Subtract(New Date(2000, 1, 1)).Days

这是一个太大的价值了!我将方面的东西视为1030-1100。 ...
It is a too big value a think! I aspect something as
1030-1100....



你的表达式在这里返回1410。(框架1.1)



Your expression returns 1410 here. (Framework 1.1)



看起来是对的。我也在使用1.1。



It seems right. I''m using 1.1 too.




你是对的。可以在这里重现。问题是:新日期(2000,1,1)

确实_not_返回1/1/2000。相反它返回1/1/0001。但仅在

调试器中(同样在快速监视中查看新日期(2000,1,1)时)

窗口),而不是在执行时i n代码。我还在试图找出原因......


(BTW,日期文字可用#1/1 / 2000#表示(不是解决方案)

问题,只有提示))

-

Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



You are right. Can reproduce it here. Problem is: "New date(2000, 1, 1)"
does _not_ return 1/1/2000. Instead it returns 1/1/0001. But only in the
debugger (also when viewing "New date(2000, 1, 1)" in the quick watch
window), not when executed in code. I''m still trying to find out why...

(BTW, date literals can be expressed by #1/1/2000# (not a solution for the
problem, only a hint))
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


这篇关于dateteime减去奇怪的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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