From philip at ross.org.uk Mon Apr 3 16:27:50 2006 From: philip at ross.org.uk (Philip Ross) Date: Mon, 03 Apr 2006 21:27:50 +0100 Subject: [TZInfo-announce] TZInfo v0.2.0 Released Message-ID: <44318546.6060001@ross.org.uk> Version 0.2.0 of TZInfo has been released (based on version 2006c of the underlying tz data). GEM, zip and tar.gz files can be found at http://rubyforge.org/frs/?group_id=894. You can use 'gem update' to upgrade if you already have tzinfo installed. Changes in this release: * Timestamps are used rather than DateTime objects in zone files for times between 1970 and 2037 (the range of Time). * Passed in Time objects are not converted to DateTime unless leaving the range of a Time. This provides a substantial performance improvement). * Integer timestamps (time in seconds since 1970-1-1) can now be used as well as Time and DateTime objects in all public methods that take times as parameters. * A new tool has been committed to the TZInfo SVN repository to compare TZInfo conversions with output from zdump. * The TZDataParser zone generation algorithm has been rewritten. It is now based on the zic code. TZInfo is now 100% compatible with zic/zdump output. * The Riyadh Solar Time zones are now included again (the generation time has been reduced with the changes to TZDataParser). * Binary mode is now used when writing zone and country files to get Unix (\n) new lines. * Unnecessary quotes in zone identifier symbols are now omitted. * The final transition to DST is now omitted in zone classes if there is a prior transition in the last year processed to standard time. * The version of the tzdata has now been updated to 2006c (http://article.gmane.org/gmane.comp.time.tz/920). -- Philip Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby From philip at ross.org.uk Mon Apr 17 15:41:40 2006 From: philip at ross.org.uk (Philip Ross) Date: Mon, 17 Apr 2006 20:41:40 +0100 Subject: [TZInfo-announce] TZInfo v0.2.1 Released Message-ID: <4443EF74.20905@ross.org.uk> Version 0.2.1 of TZInfo has been released (based on version 2006d of the underlying tz data). Gem, zip and tar.gz files can be found at http://rubyforge.org/frs/?group_id=894. You can use 'gem update' to upgrade if you already have the tzinfo gem installed. Changes in this release: * Fix a performance issue caused in 0.2.0 with Timezone.local_to_utc. Conversions performed on TimeOrDateTime instances passed to <=> are now cached as originally intended. Thanks to Michael Smedberg for spotting this. * Fix a performance issue with the local_to_utc period search algorithm originally implemented in 0.1.0. The condition that was supposed to cause the search to terminate when enough periods had been found was only being evaluated in a small subset of cases. Thanks to Michael Smedberg and Jamis Buck for reporting this. * Added abbreviation as an alias for TimezonePeriod.zone_identifier. * Updated to tzdata version 2006d (http://article.gmane.org/gmane.comp.time.tz/936). * Ignore any offset in DateTimes passed in (as is already done for Times). All of the following now refer to the same UTC time (15:40 on 17 April 2006). Previously, the DateTime in the second line would have been interpreted as 20:40. tz.utc_to_local(DateTime.new(2006, 4, 17, 15, 40, 0)) tz.utc_to_local( DateTime.new(2006, 4, 17, 15, 40, 0).new_offset(Rational(5, 24))) tz.utc_to_local(Time.utc(2006, 4, 17, 15, 40, 0)) tz.utc_to_local(Time.local(2006, 4, 17, 15, 40, 0)) -- Philip Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby