Archive

Posts Tagged ‘Timezones’

ArrayList, Bubble sorting and Timezones

January 6th, 2009 Elze 2 comments

Some title I made for this post.. The reason for this is that I wanted to do something what I tought was very simple and took me some time to do. For my "HomeTerm" project I want to have a select box with supported timezones. The first method that I used was getting all the Enum values available with the "reflector". This was very easy to do but posed a problem.. The names aren’t very descriptive. In this post I describe how I fetched all the timezone names, made a sortable type with IComparible and sorted an ArrayList with Bubble Sort. Read more…