Browse by Tags

Tagged Content List
  • Blog Post: CurrentCulture, CurrentUICulture and DateTime strings

    There are a lot of blogs out that that tries to explain which is what, and why it is the way it is. To those of you who just want to know what the results are. I wrote a quick little app to show what happens. As you can see, DateTime.ToString() formatting is driven purely by CurrentCulture. You can read...
  • Blog Post: Bye bye "System.TimeZone2", Hello "System.TimeZoneInfo"

    Did I catch your attention? I know I haven't posted anything interesting in a while. I am currently working on a project that is unannouced. However, I want to let everyone know that in Orcas Beta1 , that will be release in a few months, the BCL team decided to rename this new type to "System.TimeZoneInfo...
  • Blog Post: Orcas October CTP available - Hello, "System.DateTimeOffset"!

    Once again, I am very excited that the new CTP is available. :) My second feature for Orcas is available to the world! The BCL team has gotten plenty of feedback (as you can see the comments from my BCL post and on this blog...) about needing an object to represent exact point in time! (We do listen...
  • Blog Post: Designing System.TimeZone2 - Part 2 (Dynamic Time Zone support)

    There are some great discussion on the differences between System.TimeZone and System.TimeZone2 and what exactly is Vista Dynamic Time Zone in my previous post. So I thought I'll spend Part 2 talking about it. So what exactly is the difference? I have mentioned again and again that the difference...
  • Blog Post: Designing System.TimeZone2 - Part 1 (API naming and new class or not)

    Didn't I say it two weeks ago that API naming is the most difficult thing? :) My BCL post on System.TimeZone2 has been out for about 12 hours, and the top complaint has been .... can you guess it... yes... the name! You might even think that I knew this was going to attract some controversy and so...
  • Blog Post: System.TimeZone2 Starter Guide is now posted!

    I have posted my starter guide on the BCL team blog ! I'll post a follow up and advance usage guide here in this blog. Check back for it :) http://blogs.msdn.com/bclteam/archive/2006/10/03/System.TimeZone2-Starter-Guide-_5B00_Kathy-Kam_5D00_.aspx Check it out and let me know what you think of this...
  • Blog Post: .NET Format String 102: DateTime Format String

    "I see stuff like "zz" passed into DateTime.ToString(). What exactly does that do?" -- Very Confused DateTime String Formatter DateTime has its own set format string modifiers because there are so many ways to display a date and time. There are 2 things that affects how your DateTime is formatted...
  • Blog Post: Time Zones available in Window XP/Vista sorted by GMT Offset

    Time Zone Ids Offset Location Central Europe Standard Time +01:00 Belgrade, Bratislava, Budapest, Ljubljana, Prague Central European Standard Time +01:00 Sarajevo, Skopje, Warsaw, Zagreb Romance Standard Time +01:00 Brussels,...
  • Blog Post: Time zones available in Windows XP and Vista sorted by Time Zone Ids

    Time Zone Ids Offset Location Afghanistan Standard Time +04:30 Kabul Alaskan Standard Time -09:00 Alaska Arab Standard Time +03:00 Kuwait, Riyadh Arabian Standard Time +04:00 Abu Dhabi, Muscat Arabic...
  • Blog Post: Orcas September CTP available... Hello "System.TimeZone2"!

    I am so excited that the CTP is finally available! As soon as you crack open the bits, you'll find what I have been working months on! Can you guess what it is??? NET Framework improvements such as: New managed add-in model enables developers to add a version-resilient extensibility model to...
  • Blog Post: Is modifying System.DateTime reasonable for a Time Zone/Offset aware DateTime object?

    So, in my previous " Designing Time Zone Conversion " post, a few readers asked whether we can update System.DateTime to understand Time Zones. Before we look into whether we can update DateTime, we should look into how this "improved" DateTime should function. Users want a class that can specified...
  • Blog Post: Answer of the month: IsDaylightSavingTime() or not?

    Answer: static DateTime GetAnswer() { DateTime utc = new DateTime (2006, 10, 29, 8, 30, 0, DateTimeKind .Utc); return utc.ToLocalTime(); } Explaination: The main "trick" in this question is that the DateTime I want actually lands in the ambiguous hour when you fall back in Pacific...
  • Blog Post: Quiz of the Month: IsDaylightSavingTime() or not?

    Question: Given your machine is in Pacific Time (PST) Time Zone, what is MainProgram.GetAnswer so that MainProgram.Test returns true? class MainProgram { static DateTime GetAnswer() { ???? } static bool Test() { DateTime a = MainProgram .GetAnswer(); String actual = String...
Page 1 of 1 (13 items)