I don't think the time zone ID's change so much, but the database is updated
several times per year (per a reference in Wikipedia,
http://en.wikipedia.org/wiki/Tz_database). Every change would require
checking, confirming, and at minimum posting a note as to whether the
current Joda release is in line with the current Olsen DB. A pain in the
rear at a minimum, not to mention risky to users as it's a pretty obscure
dependency that would be created (the TZ DB update may be an unrelated, or
automatic update on a system, whereas Joda releases would be a separate,
manual software update). You could indeed create your own Enum, but it's
probably not worth the effort since you're probably only saving a few lines
of code by using an Enum over the available methods that do the same.

 

 

 

From: Matthew Adams [mailto:[email protected]] 
Sent: Friday, April 15, 2011 12:00 PM
To: Discussion of the Joda project
Cc: Stephen Colebourne
Subject: Re: [Joda-interest] Are there enums of the timezone id strings
somewhere?

 

Hi all,

I guess I didn't realize how much the database changes.  I thought it
was infrequent enough to use enums instead of strings, in which case
I'd be ok with a Joda library update to capture the changes, but I
guess not.

Thanks,
Matthew

On Thu, Apr 14, 2011 at 7:08 PM, Stephen Colebourne
<[email protected]> wrote:
> An enum is generally a bad idea for data that may change over time.
> The examples below are a good way to find the zones.
>
> Stephen
>
>
> On 15 April 2011 00:42, Tauren Mills <[email protected]> wrote:
>> I'm not sure it would make sense to create an enum of the timezones.
>> My understanding is that timezone information is pulled from the Olson
>> database installed onto your system or java installation. This
>> database can be updated as changes to timezones occur. If there was an
>> enum, it would require that JodaTime be recompiled each time the
>> database changes instead of just loading the database.
>>
>> Perhaps I'm mistaken on how this works, and if so, please advise. The
>> suggestions others have given should do the trick for getting a list
>> of timezones.
>>
>>
>> On Thu, Apr 14, 2011 at 2:34 PM, Matthew Adams <[email protected]>
wrote:
>>> Hi all,
>>>
>>> Are there enums of the long string ids of timezones somewhere?  Like
>>> "America/Los_Angeles"?  I know we're supposed to use those, but where
>>> are they defined?  RTFMs are welcome for this question.
>>>
>>> Thanks,
>>> Matthew
>>>
>>> --
>>> @matthewadams12
>>> mailto:[email protected]
>>> skype:matthewadams12
>>> yahoo:matthewadams
>>> aol:matthewadams12
>>> google-talk:[email protected]
>>> msn:[email protected]
>>> http://matthewadams.me
>>> http://www.linkedin.com/in/matthewadams
>>>
>>>
----------------------------------------------------------------------------
--
>>> Benefiting from Server Virtualization: Beyond Initial Workload
>>> Consolidation -- Increasing the use of server virtualization is a top
>>> priority.Virtualization can reduce costs, simplify management, and
improve
>>> application availability and disaster protection. Learn more about
boosting
>>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>>> _______________________________________________
>>> Joda-interest mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/joda-interest
>>>
>>
>>
----------------------------------------------------------------------------
--
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and
improve
>> application availability and disaster protection. Learn more about
boosting
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>> _______________________________________________
>> Joda-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/joda-interest
>>
>
>
----------------------------------------------------------------------------
--
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about
boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Joda-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>



--
@matthewadams12
mailto:[email protected]
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:[email protected]
msn:[email protected]
http://matthewadams.me
http://www.linkedin.com/in/matthewadams

----------------------------------------------------------------------------
--
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest 

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1209 / Virus Database: 1500/3574 - Release Date: 04/14/11

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to