<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx</link><description>The Base Class Libraries is exploring scenarios related to Time Zone support and we are very likely to have a solution for this problem in the next release. We have already received a lot of great feedback from an earlier post. There are several high</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#685074</link><pubDate>Tue, 01 Aug 2006 12:58:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:685074</guid><dc:creator>zibb</dc:creator><description>1. Full compatibility with Unix/Java platform through direct usage of olson database.&lt;br&gt;2. Recognition of &amp;quot;spring forward&amp;quot; and &amp;quot;fall back&amp;quot; regions. As an example I could give the existing solution - TZ4Net library available at &lt;a rel="nofollow" target="_new" href="http://www.babiej.demon.nl/Tz4Net/main.htm"&gt;http://www.babiej.demon.nl/Tz4Net/main.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Zibb&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=685074" width="1" height="1"&gt;</description></item><item><title>Designing &amp;amp;quot;Time Zone conversions&amp;amp;quot;</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#665021</link><pubDate>Fri, 14 Jul 2006 01:42:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:665021</guid><dc:creator>Kathy Kam</dc:creator><description>The BCL Team has been spending a lot of time investigating on how to provide richer support for Time...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=665021" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#661627</link><pubDate>Mon, 10 Jul 2006 22:19:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:661627</guid><dc:creator>Marc Brooks</dc:creator><description>In order of importance:&lt;br&gt;&lt;br&gt;7, 1, 5, 4, 9, 8 (but use codes shown in 9) &amp;nbsp;&lt;br&gt;&lt;br&gt;Not worth doing (but if you have time):&lt;br&gt;&lt;br&gt;2, 3 &lt;br&gt;&lt;br&gt;Don't you DARE:&lt;br&gt;&lt;br&gt;6&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=661627" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#661308</link><pubDate>Mon, 10 Jul 2006 14:28:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:661308</guid><dc:creator>vincent schol</dc:creator><description>I wrote my own version of the methods ToLocalTime and ToUniversalTime. I treat the Day Light Saving transition hours different than the methods in System.DateTime by forcing the minutes and seconds in a transition hour to zero. This is necessary when dealing with intervals rather than isolated moments. &lt;br&gt;Consider an interval at march 28 2004 from 02:30:01 till 03:15:00 expressed in local time (Western Europe).When calling System.DateTime.ToUniversalTime this becomes 01:30:01 till 01:15:00. You see that the interval has a negative length in UTC! When calling my own ToUniversalTime this becomes 01:00:00 till 01:15:00.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=661308" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#660199</link><pubDate>Sat, 08 Jul 2006 23:00:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:660199</guid><dc:creator>Ruben</dc:creator><description>Also, consider &lt;br&gt;&lt;br&gt;1) not reinventing the wheel; look at e.g., Java, and the tz database (&lt;a rel="nofollow" target="_new" href="http://www.twinsun.com/tz/tz-link.htm"&gt;http://www.twinsun.com/tz/tz-link.htm&lt;/a&gt;).&lt;br&gt;&lt;br&gt;2) supporting invariant 'names' for time zones, like the ISO country and language codes. Things like the tz database's Europe/Paris and America/Los_Angeles (such as Java does).&lt;br&gt;&lt;br&gt;3) not supporting things like EST universally. Maybe only within a CultureInfo context of en-US, or the right RegionInfo. Abbreviation like EST are not used by Americans alone!&lt;br&gt;&lt;br&gt;4) not supporting things like TimeZone.Eastern. Again, the world does not consist of Americans alone. The Eastern part of my country has the same timezone as the middle and the Western part, for example. TimeZone.GetSpecificTimeZone(&amp;quot;America/New_York&amp;quot;) should suffice.&lt;br&gt;&lt;br&gt;5) custom time zones that can be stored on the machine, like CultureInfo. This would allow for time zones you didn't think of. and let's be honest: no-one think of everything.&lt;br&gt;&lt;br&gt;6) updating the central repository when required. So when Australia decides to alter their time zone for the Olympics, my programs don't use the wrong time zone info when comunicating with some system down under. In other words: don't let .NET behave as poorly as Windows.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=660199" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#659400</link><pubDate>Sat, 08 Jul 2006 00:00:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659400</guid><dc:creator>Clay_Keller</dc:creator><description>I think you should just let 3rd parties offer most of this functionality. It is fairly easy to implement most of this with managed code algorithms and open source .net code already exists for much of this.&lt;br&gt;&lt;br&gt;One of the problems is that time zones are not always agreed upon by various regions and some regions/countries don't necessarily live by the standard timezone definitions. So if you do provide these standard functions, you would surely need to provide a method to create custom zones.&lt;br&gt;&lt;br&gt;The following should be provided, because the only way to do it now is to use interop and Win32 API calls.&lt;br&gt;&lt;br&gt;-&amp;gt; Supporting changing the machine’s current time zone. &lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=659400" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#659267</link><pubDate>Fri, 07 Jul 2006 21:19:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659267</guid><dc:creator>Michael Vanhoutte</dc:creator><description>Now that I've read Michael Giagnocavo remarks about &amp;quot;Supporting an ambient time zone setting at the level of the thread or process&amp;quot; I must change my opinion. It is indeed to dangerous to do this on a thread- or process-level because it could have unintended consequences for other libraries that are also using dates. Especially if this would be supported on a process-level. In ASP.NET for example, one website could accidently change the timezone of another website. Obviously not desired behavior and almost impossible to debug.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=659267" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#659135</link><pubDate>Fri, 07 Jul 2006 19:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659135</guid><dc:creator>Michael Giagnocavo</dc:creator><description>1. Creating a custom time zone...&lt;br&gt; // Don't see much need, but wouldn't hurt&lt;br&gt;&lt;br&gt;&lt;br&gt;2. Writing a custom time zone back permanently...&lt;br&gt; // I can't see why an app would need to do this. Sounds dangerous to expose this as a supported function.&lt;br&gt;&lt;br&gt;3. Creating a copy of a time zone with daylight saving time turned off.&lt;br&gt; // Can't hurt, not sure of the benefit.&lt;br&gt;&lt;br&gt;4. Functions to ask whether a local time falls into an undefined...&lt;br&gt; &amp;nbsp;// This would be nice to have. &lt;br&gt;&lt;br&gt;5. Supporting historical time zones where the base offset can change from year to year.&lt;br&gt; &amp;nbsp;// Yes, this is important. I want to be able to format any UTC datetime in a local timezone and have it be correct.&lt;br&gt;&lt;br&gt;6. Supporting changing the machine’s current time zone.&lt;br&gt; // No, please no. &lt;br&gt;&lt;br&gt;7. Supporting an ambient time zone setting at the level of the thread or process.&lt;br&gt; // That sounds anything from slightly confusing to downright evil, depending on what the effect is. Even in a web app, I don't see the usefulness of this, unless it automagically converted every datetime when formatting (assuming the datetimes had UTC offsets baked in). But seeing as people have enough trouble with datetimes as is, making it less implicit (because the thread would have this setting, so it's transparent), seems like it'd open up some pitfalls.&lt;br&gt;&lt;br&gt;8. Helper functions allowing for some simple conversions ...&lt;br&gt; // Yes, only with the caveat that the parameters should be timezone objects, not strings.&lt;br&gt;&lt;br&gt;9. Parsing and formatting of DateTimes with embedded time zone acronyms, e.g. “PST”, “EDT”.&lt;br&gt; // That'd be useful.&lt;br&gt;&lt;br&gt;But thanks for finally getting time zone support in!!! When you say next version, is that WinFX (&amp;quot;.NET 3&amp;quot;)? &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=659135" width="1" height="1"&gt;</description></item><item><title>Results of the 'Time Zone Scenario Feedback' feared</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#658934</link><pubDate>Fri, 07 Jul 2006 15:20:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:658934</guid><dc:creator>Sorting It All Out</dc:creator><description>Over on the BCLTeam blog, Anthony Moore has posted Time Zone Scenario Feedback Wanted. &lt;br&gt;Now I have mentioned...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=658934" width="1" height="1"&gt;</description></item><item><title>re: Time Zone Scenario Feedback Wanted [Anthony Moore]</title><link>http://blogs.msdn.com/b/bclteam/archive/2006/07/05/657242.aspx#658901</link><pubDate>Fri, 07 Jul 2006 14:27:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:658901</guid><dc:creator>TAG</dc:creator><description>a) Leap seconds !&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://en.wikipedia.org/wiki/Leap_second"&gt;http://en.wikipedia.org/wiki/Leap_second&lt;/a&gt;&lt;br&gt;&lt;br&gt;b) Old style vs. new style dates. &lt;br&gt;&lt;br&gt;c) All settings for timezones must not be hardcored - but configuration options (XML/registry - does not matter). &lt;br&gt;&lt;br&gt;d) DateTime class must store not simply UTC offset - but full timezone reference with DST flag (i.e. standard time vs. daylight one)&lt;br&gt;&lt;br&gt;e) It must be possible to round-trip all parsing/formatting. All operations like &amp;nbsp;DateTimeZone +- Timespan must keep original timezone name and &amp;nbsp;DateTimeZone - DateTimeZone must support different timezones (as Timespan is neutral).&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=658901" width="1" height="1"&gt;</description></item></channel></rss>