TZInfo - Ruby Timezone Library

TZInfo is a Ruby library that uses the standard tz (Olson) database to provide daylight savings aware transformations between times in different time zones. The tz database is compiled into Ruby modules which are packaged in the release. No external zoneinfo files are required at runtime.

Installation and Usage

Instructions for installing and using TZInfo can be found in the project readme file.

API Documentation

API Documentation is available.

Mailing Lists

There are two TZInfo mailing lists:

RubyForge

The RubyForge project page for TZInfo can be found at http://rubyforge.org/projects/tzinfo/.

Please use the Tracker to submit any bugs or feature requests. You can download releases from the File list. The source code is available through SVN.

Ruby on Rails

Ruby on Rails (version 2.1 and later) uses TZInfo for timezone support. Rails can automatically store times in UTC and convert to the user's timezone for display. See Working wth Time Zones in the Ruby on Rails Wiki for details.

Alternatives

Ruby/TZFile

Ruby/TZFile provides a similar interface to TZInfo, but requires you to have zoneinfo files available locally.

Phil Ross
15th January 2011