有关DateTime 和Timezone

博主过去几个月研究DateTime的工作原理,发现看似简单的DateTime存在陷阱。文中按日期整理了一系列关于DateTime的有趣内容,包括夏令时问题、.NET框架中DateTime编码最佳实践、兼容性问题等相关博客文章链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

source: http://geekswithblogs.net/mtreadwell/archive/2004/05/21/5214.aspx

Over the past several months, I have been learning about how DateTime really works.  It turns out that there are pitfalls in something that appears to be inherently simple.  Here is a group of interesting work on the subject arranged by date.


Why Daylight Savings Time is Non-intuitive
Raymond Chen blog
http://weblogs.asp.net/oldnewthing/archive/2003/10/24/55413.aspx

Coding Best Practices Using DateTime in the .NET Framework
Dan Rogers MSDN article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/datetimecode.asp

New DateTime Best Practices Article
BCL Team blog
http://weblogs.asp.net/BCLTeam/archive/2004/01/23/62407.aspx

DateTime Compatibility Issue
Brad Abrams blog
http://blogs.msdn.com/brada/archive/2004/02/17/74914.aspx

Representing Null DateTime Values in Code
Scott Munro blog
http://dotnetjunkies.com/WebLog/scottmunro/archive/2004/03/15/9153.aspx

Adding Emptiness to the DateTime class
Eric Gunnerson blog
http://weblogs.asp.net/ericgu/archive/2004/03/23/95011.aspx

DateTime, Serialization and TimeZones
Brad Abrams blog
http://blogs.msdn.com/brada/archive/2004/04/13/112784.aspx

More on DateTime and TimeZones
Brad Abrams blog
http://blogs.msdn.com/brada/archive/2004/04/20/117279.aspx

DateTime FAQ Entries
BCL Team blog
http://blogs.msdn.com/BCLTeam/archive/2004/05/21/136918.aspx


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值