<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>TimeZone2 - first impressions</title><link>http://msmvps.com/blogs/bill/archive/2006/10/04/TimeZone2-_2D00_-first-impressions.aspx</link><description>Kathy Kam asked for feedback on Timezone2, so tonight I decided to have a bit of a play and these are my first impressions// partial code review: ConvertTimeBySystemTimeZoneId could the name be any longer ? I think this should probably just be an overload</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Mind Gravy  &amp;raquo; Blog Archive   &amp;raquo; links for 2008-05-17</title><link>http://msmvps.com/blogs/bill/archive/2006/10/04/TimeZone2-_2D00_-first-impressions.aspx#1623736</link><pubDate>Sat, 17 May 2008 12:33:33 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1623736</guid><dc:creator>Mind Gravy  » Blog Archive   » links for 2008-05-17</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Mind Gravy &amp;nbsp;&amp;amp;raquo; Blog Archive &amp;nbsp; &amp;amp;raquo; links for 2008-05-17&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1623736" width="1" height="1"&gt;</description></item><item><title>re: TimeZone2 - first impressions</title><link>http://msmvps.com/blogs/bill/archive/2006/10/04/TimeZone2-_2D00_-first-impressions.aspx#154320</link><pubDate>Thu, 05 Oct 2006 01:21:14 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:154320</guid><dc:creator>bill</dc:creator><description>&lt;p&gt;more thoughts on 8.&lt;/p&gt;
&lt;p&gt;As it stands the caller has to know when to call TimeZone2.ClearCachedData, which is pretty hard for them to do while only using the framework. &lt;/p&gt;
&lt;p&gt;Looking at what is cleared in that, the only one of any real significnace I think is the Local property. that is, through standard window Ui's it's easy ot change the current time zone. &amp;nbsp;UTC won't change, and althohg any cached system time zonez might change, when they are changed, it's not a standard windows operation.&lt;/p&gt;
&lt;p&gt;So the question is is the overhead of calling &amp;nbsp;GetDynamicTimeZoneInformation and comparing the data with the cached Local timezone2 so significant that we cut functionality for the sake of performance ? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Personally I would think that functionality is more important than performance here, and should the perf be an issue, the caller can cache TimeZone2.Local themselves. hence haivng Timezone2.Local *always* check to see if ti has changed would be the better design IMNSHO :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=154320" width="1" height="1"&gt;</description></item><item><title>re: TimeZone2 - first impressions</title><link>http://msmvps.com/blogs/bill/archive/2006/10/04/TimeZone2-_2D00_-first-impressions.aspx#154287</link><pubDate>Thu, 05 Oct 2006 00:54:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:154287</guid><dc:creator>bill</dc:creator><description>&lt;p&gt;Hi Kathy,&lt;/p&gt;
&lt;p&gt;Re 5, oh yes it is !!&lt;/p&gt;
&lt;p&gt;Dim tz1 As TimeZone2 = TimeZone2.FindSystemTimeZoneById(&amp;quot;AUS Eastern Standard Time&amp;quot;)&lt;/p&gt;
&lt;p&gt;Dim tz2 As TimeZone2 = TimeZone2.FindSystemTimeZoneById(&amp;quot;AUS Eastern Standard Time&amp;quot;)&lt;/p&gt;
&lt;p&gt;If tz1 Is tz2 Then ' returns False&lt;/p&gt;
&lt;p&gt;The problem is inside TryGetTimeZone, jsut look for all the &amp;quot;new&amp;quot;'s in there ;)&lt;/p&gt;
&lt;p&gt;RE 6: it's because of 5 :)&lt;/p&gt;
&lt;p&gt;Re 8: &amp;nbsp;Cool !! Sorry I didn't notice it, my bad :( &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Bill.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=154287" width="1" height="1"&gt;</description></item><item><title>re: TimeZone2 - first impressions</title><link>http://msmvps.com/blogs/bill/archive/2006/10/04/TimeZone2-_2D00_-first-impressions.aspx#153680</link><pubDate>Wed, 04 Oct 2006 20:15:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:153680</guid><dc:creator>KathyKam</dc:creator><description>&lt;p&gt;Hey @Head,&lt;/p&gt;
&lt;p&gt;This is some great feedback! I'll probably address all of them in my next posting! :) &lt;/p&gt;
&lt;p&gt;There is some quick responses to your points above:&lt;/p&gt;
&lt;p&gt;5: FindSystemTimeZoneById is not reaturing a fresh instance everytime. &lt;/p&gt;
&lt;p&gt;6: The behaviour you are seeing is a known issue that will be fixed in the RTM version. &lt;/p&gt;
&lt;p&gt;8: TimeZone2.ClearCachedData allows you to clear the cached Data.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kathy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=153680" width="1" height="1"&gt;</description></item></channel></rss>