Thanks, that was what I was looking for.  I am still reading the javadoc
and learning joda time.

Mike

On 3/30/2010 5:27 PM, Stephen Cresswell wrote:
> DateTimeZone.getAvailableIDs().contains("America/Denve") ?
>
> On 30 March 2010 23:08, Mike Bates <sx...@comcast.net
> <mailto:sx...@comcast.net>> wrote:
>
>     Is this a valid way to check whether a Timezone is valid or is there a
>     better way?
>
>               try {
>                    DateTimeZone dtz = DateTimeZone.forID("America/Denve");
>                    } catch (IllegalArgumentException iae) {
>                        System.out.println("The timezone enter is not
>     valid.
>     " + iae);
>                    }
>
>     I am parsing a properties file where a user would type in the timezone
>     and I would prefer it correct before using.
>
>     Thanks
>     Mike
>
>     
> ------------------------------------------------------------------------------
>     Download Intel&#174; Parallel Studio Eval
>     Try the new software tools for yourself. Speed compiling, find bugs
>     proactively, and fine-tune applications for parallel performance.
>     See why Intel Parallel Studio got high marks during beta.
>     http://p.sf.net/sfu/intel-sw-dev
>     _______________________________________________
>     Joda-interest mailing list
>     Joda-interest@lists.sourceforge.net
>     <mailto:Joda-interest@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/joda-interest
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>   
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to