From tom at moulton.us Fri Jan 14 07:35:06 2011 From: tom at moulton.us (Thomas A. Moulton) Date: Fri, 14 Jan 2011 07:35:06 -0500 Subject: [TZInfo-users] TZ Info updates Message-ID: <4D3042FA.7070309@moulton.us> The readme says The tz database has been imported (using TZDataParser) and turned into a set of Ruby modules (which are packaged with this release). ---- When the TZ Database changes will I automatically be updated? I am running in a process that runs "all" the time, is there a function to cause the current data to be discarded so it will be reloaded from the online database? tom From phil.ross at gmail.com Sat Jan 15 08:26:29 2011 From: phil.ross at gmail.com (Philip Ross) Date: Sat, 15 Jan 2011 13:26:29 +0000 Subject: [TZInfo-users] TZ Info updates In-Reply-To: <4D3042FA.7070309@moulton.us> References: <4D3042FA.7070309@moulton.us> Message-ID: Hi Thomas, On 14 January 2011 12:35, Thomas A. Moulton wrote: > The readme says > The tz database has been imported (using TZDataParser) and turned into a set > of Ruby modules (which are packaged with this release). > ---- > When the TZ Database changes will I automatically be updated? TZInfo does not automatically update the tz data. Updates to the tz database are published several times a year. New versions of tzinfo are released following releases of the tz database that contain the new tz data. To get the updates you'll have to either update the tzinfo gem or download the changes manually from RubyForge or the svn repository. > I am running in a process that runs "all" the time, is there a function to > cause the current data to be discarded so it will be reloaded from the > online database? No, TZInfo doesn't include any support for downloading updated data or reloading the local data module files. Kind regards, Phil From phil.ross at gmail.com Sat Jan 15 08:26:29 2011 From: phil.ross at gmail.com (Philip Ross) Date: Sat, 15 Jan 2011 13:26:29 +0000 Subject: [TZInfo-users] TZ Info updates In-Reply-To: <4D3042FA.7070309@moulton.us> References: <4D3042FA.7070309@moulton.us> Message-ID: Hi Thomas, On 14 January 2011 12:35, Thomas A. Moulton wrote: > The readme says > The tz database has been imported (using TZDataParser) and turned into a set > of Ruby modules (which are packaged with this release). > ---- > When the TZ Database changes will I automatically be updated? TZInfo does not automatically update the tz data. Updates to the tz database are published several times a year. New versions of tzinfo are released following releases of the tz database that contain the new tz data. To get the updates you'll have to either update the tzinfo gem or download the changes manually from RubyForge or the svn repository. > I am running in a process that runs "all" the time, is there a function to > cause the current data to be discarded so it will be reloaded from the > online database? No, TZInfo doesn't include any support for downloading updated data or reloading the local data module files. Kind regards, Phil From tom at moulton.us Sat Jan 15 11:18:19 2011 From: tom at moulton.us (Thomas A. Moulton) Date: Sat, 15 Jan 2011 11:18:19 -0500 Subject: [TZInfo-users] TZ Info updates In-Reply-To: References: <4D3042FA.7070309@moulton.us> Message-ID: <4D31C8CB.1070506@moulton.us> Here is an update for your website. The link for TZFile is on your site as http://cvs.m17n.org/~akr/ruby-tzfile/ The correct link is: http://www.a-k-r.org/ruby-tzfile/ Does anyone have experience with TZ File? I am running on a Linux box (Ubuntu) and it seems those files are automatically updated, so that may be my best solution... assuming they work ok :) tom ps. Feel free to contact me off-list if you prefer your comments to be private :) On 01/15/2011 08:26 AM, Philip Ross wrote: > Hi Thomas, > > On 14 January 2011 12:35, Thomas A. Moulton wrote: >> The readme says >> The tz database has been imported (using TZDataParser) and turned into a set >> of Ruby modules (which are packaged with this release). >> ---- >> When the TZ Database changes will I automatically be updated? > TZInfo does not automatically update the tz data. > > Updates to the tz database are published several times a year. New > versions of tzinfo are released following releases of the tz database > that contain the new tz data. To get the updates you'll have to either > update the tzinfo gem or download the changes manually from RubyForge > or the svn repository. > >> I am running in a process that runs "all" the time, is there a function to >> cause the current data to be discarded so it will be reloaded from the >> online database? > No, TZInfo doesn't include any support for downloading updated data or > reloading the local data module files. > > Kind regards, > > Phil > _______________________________________________ > TZInfo-users mailing list > TZInfo-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tzinfo-users > > . > From phil.ross at gmail.com Sat Jan 15 11:55:46 2011 From: phil.ross at gmail.com (Philip Ross) Date: Sat, 15 Jan 2011 16:55:46 +0000 Subject: [TZInfo-users] TZ Info updates In-Reply-To: <4D31C8CB.1070506@moulton.us> References: <4D3042FA.7070309@moulton.us> <4D31C8CB.1070506@moulton.us> Message-ID: Hi Thomas, On 15 January 2011 16:18, Thomas A. Moulton wrote: > Here is an update for your website. > > The link for TZFile is on your site as http://cvs.m17n.org/~akr/ruby-tzfile/ > > The correct link is: http://www.a-k-r.org/ruby-tzfile/ Thanks. I have updated the site. > Does anyone have experience with TZ File? I haven't looked at TZFile since before I started work on TZInfo. You may get a better response by asking on the main Ruby Talk mailing list (this one doesn't get much traffic). Kind regards, Phil From tom at moulton.us Sat Jan 15 12:22:45 2011 From: tom at moulton.us (Thomas A. Moulton) Date: Sat, 15 Jan 2011 12:22:45 -0500 Subject: [TZInfo-users] TZ Info updates In-Reply-To: References: <4D3042FA.7070309@moulton.us> <4D31C8CB.1070506@moulton.us> Message-ID: <4D31D7E5.3060600@moulton.us> thanks On 01/15/2011 11:55 AM, Philip Ross wrote: > Hi Thomas, > > On 15 January 2011 16:18, Thomas A. Moulton wrote: >> Here is an update for your website. >> >> The link for TZFile is on your site as http://cvs.m17n.org/~akr/ruby-tzfile/ >> >> The correct link is: http://www.a-k-r.org/ruby-tzfile/ > Thanks. I have updated the site. > >> Does anyone have experience with TZ File? > I haven't looked at TZFile since before I started work on TZInfo. You > may get a better response by asking on the main Ruby Talk mailing list > (this one doesn't get much traffic). > > Kind regards, > > Phil > _______________________________________________ > TZInfo-users mailing list > TZInfo-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tzinfo-users > > From steve at wiscota.net Wed Jan 26 15:45:43 2011 From: steve at wiscota.net (steve fox) Date: Wed, 26 Jan 2011 14:45:43 -0600 Subject: [TZInfo-users] 'Brazil/East' Message-ID: <4D4087F7.2090104@wiscota.net> Hi, I love this module, though some of the codes don't seem to be working e.g, 'Brazil/East' and 'Asia/Calcutta': >> rio= TZInfo::Country.get('Brazil/East') TZInfo::InvalidCountryCode: Invalid identifier I got the country code information from /usr/shared/zoneinfo. Should I be referencing something else? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil.ross at gmail.com Wed Jan 26 18:18:13 2011 From: phil.ross at gmail.com (Philip Ross) Date: Wed, 26 Jan 2011 23:18:13 +0000 Subject: [TZInfo-users] 'Brazil/East' In-Reply-To: <4D4087F7.2090104@wiscota.net> References: <4D4087F7.2090104@wiscota.net> Message-ID: Hi Steve, On 26 January 2011 20:45, steve fox wrote: > I love this module, though some of the codes don't seem to be working e.g, > 'Brazil/East' and 'Asia/Calcutta': > >>> rio= TZInfo::Country.get('Brazil/East') > TZInfo::InvalidCountryCode: Invalid identifier Brazil/East is a timezone identifier, not a country code. You need to use it with TZInfo::Timezone.get instead of TZInfo::Country.get: rio = TZInfo::Timezone.get('Brazil/East') => # TZInfo::Country can be used to obtain the timezones for a particular country (by its ISO 3166 two letter country code). For example, the following code returns the timezones identifiers for Brazil: >> TZInfo::Country.get('BR').zone_identifiers => ["America/Noronha", "America/Belem", "America/Fortaleza", "America/Recife", "America/Araguaina", "America/Maceio", "America/Bahia", "America/Sao_Paulo", "America/Campo_Grande", "America/Cuiaba", "America/Santarem", "America/Porto_Velho", "America/Boa_Vista", "America/Manaus", "America/Eirunepe", "America/Rio_Branco"] Note that this doesn't include Brazil/East. This is because Brazil/East is an alias for America/Sao_Paulo, provided for backwards compatibility. > I got the country code information from /usr/shared/zoneinfo.? Should I be > referencing something else? TZInfo doesn't actually use the system /usr/shared/zoneinfo directory. The zoneinfo directory and TZInfo do both use the the tz database (http://www.twinsun.com/tz/tz-link.htm) as their source though. You can get a list of the identifiers of all the timezone included with TZInfo using the TZInfo::Timezone.all_identifiers method. The tz database zone.tab file (http://tzinfo.rubyforge.org/svn/branches/0.3/data/zone.tab) lists all the timezones associated with countries. You can access the zone.tab data through the TZInfo API using the TZInfo::Country#zone_info method. Please refer to the API documentation (http://tzinfo.rubyforge.org/doc/) for details. Kind regards, Phil From steve at wiscota.net Wed Jan 26 23:44:20 2011 From: steve at wiscota.net (steve fox) Date: Wed, 26 Jan 2011 22:44:20 -0600 Subject: [TZInfo-users] 'Brazil/East' In-Reply-To: References: <4D4087F7.2090104@wiscota.net> Message-ID: <4D40F824.8080406@wiscota.net> Phil, Excellent info, thank you and please pardon the top post. Steve On 1/26/11 5:18 PM, Philip Ross wrote: > Hi Steve, > > On 26 January 2011 20:45, steve fox wrote: >> I love this module, though some of the codes don't seem to be working e.g, >> 'Brazil/East' and 'Asia/Calcutta': >> >>>> rio= TZInfo::Country.get('Brazil/East') >> TZInfo::InvalidCountryCode: Invalid identifier > Brazil/East is a timezone identifier, not a country code. You need to > use it with TZInfo::Timezone.get instead of TZInfo::Country.get: > > rio = TZInfo::Timezone.get('Brazil/East') > => # > > TZInfo::Country can be used to obtain the timezones for a particular > country (by its ISO 3166 two letter country code). For example, the > following code returns the timezones identifiers for Brazil: > >>> TZInfo::Country.get('BR').zone_identifiers > => ["America/Noronha", "America/Belem", "America/Fortaleza", > "America/Recife", "America/Araguaina", "America/Maceio", > "America/Bahia", "America/Sao_Paulo", "America/Campo_Grande", > "America/Cuiaba", "America/Santarem", "America/Porto_Velho", > "America/Boa_Vista", "America/Manaus", "America/Eirunepe", > "America/Rio_Branco"] > > Note that this doesn't include Brazil/East. This is because > Brazil/East is an alias for America/Sao_Paulo, provided for backwards > compatibility. > >> I got the country code information from /usr/shared/zoneinfo. Should I be >> referencing something else? > TZInfo doesn't actually use the system /usr/shared/zoneinfo directory. > The zoneinfo directory and TZInfo do both use the the tz database > (http://www.twinsun.com/tz/tz-link.htm) as their source though. You > can get a list of the identifiers of all the timezone included with > TZInfo using the TZInfo::Timezone.all_identifiers method. > > The tz database zone.tab file > (http://tzinfo.rubyforge.org/svn/branches/0.3/data/zone.tab) lists all > the timezones associated with countries. You can access the zone.tab > data through the TZInfo API using the TZInfo::Country#zone_info > method. Please refer to the API documentation > (http://tzinfo.rubyforge.org/doc/) for details. > > Kind regards, > > Phil > _______________________________________________ > TZInfo-users mailing list > TZInfo-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/tzinfo-users