{"id":20373,"date":"2008-10-31T10:00:00","date_gmt":"2008-10-31T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2008\/10\/31\/working-with-ambiguous-and-invalid-points-in-time-in-managed-code\/"},"modified":"2008-10-31T10:00:00","modified_gmt":"2008-10-31T10:00:00","slug":"working-with-ambiguous-and-invalid-points-in-time-in-managed-code","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20081031-00\/?p=20373","title":{"rendered":"Working with ambiguous and invalid points in time in managed code"},"content":{"rendered":"<p>Public Service Announcement: Daylight Saving Time ends in most parts of the United States this weekend.<\/p>\n<p> I pointed out <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2003\/10\/24\/55413.aspx\"> some time ago<\/a> that Win32 and .NET deal with daylight saving time differently. Specifically, Win32 always deals with the time zone you are currently in (even if it&#8217;s not the time zone that corresponds to the timestamp you are manipulating), whereas .NET deals with the time zone that was in effect at the time the timestamp was generated. <\/p>\n<p> For more details on the latter, I refer you to Josh Free from <a href=\"http:\/\/blogs.msdn.com\/bclteam\/\"> the BCL Team Blog<\/a>, who some time ago explained <a href=\"http:\/\/blogs.msdn.com\/bclteam\/archive\/2007\/06\/11\/system-timezoneinfo-working-with-ambiguous-and-invalid-points-in-time-josh-free.aspx\"> how to work with ambiguous and invalid points in time<\/a> in managed code. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Public Service Announcement: Daylight Saving Time ends in most parts of the United States this weekend. I pointed out some time ago that Win32 and .NET deal with daylight saving time differently. Specifically, Win32 always deals with the time zone you are currently in (even if it&#8217;s not the time zone that corresponds to the [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25,108],"class_list":["post-20373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code","tag-time"],"acf":[],"blog_post_summary":"<p>Public Service Announcement: Daylight Saving Time ends in most parts of the United States this weekend. I pointed out some time ago that Win32 and .NET deal with daylight saving time differently. Specifically, Win32 always deals with the time zone you are currently in (even if it&#8217;s not the time zone that corresponds to the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/20373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=20373"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/20373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=20373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=20373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=20373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}