加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

在SQL Server中的c#和DateTime之间的DateTime有什么区别吗?

发布时间:2020-12-12 16:37:28 所属栏目:MsSql教程 来源:网络整理
导读:在SQL Server中的c#和DateTime之间的DateTime有什么区别吗? 解决方法 精度和范围(所以一切都很重要; -p) 从MSDN: .NET System.DateTime The DateTime value type represents dates and times with values ranging from 12:00:00 midnight,January 1,0001 An
在SQL Server中的c#和DateTime之间的DateTime有什么区别吗?

解决方法

精度和范围(所以一切都很重要; -p)

从MSDN:

.NET System.DateTime

The DateTime value type represents dates and times with values ranging from 12:00:00 midnight,January 1,0001 Anno Domini (Common Era) through 11:59:59 P.M.,December 31,9999 A.D. (C.E.)

Time values are measured in 100-nanosecond units called ticks,and a particular date is the number of ticks since 12:00 midnight,0001 A.D. (C.E.) in the GregorianCalendar calenda

Transact SQL datetime

Date Range: January 1,1753,through December 31,9999

Accuracy: Rounded to increments of .000,.003,or .007 seconds

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读