First, thanks to everyone for a great date/time library. I've been
struggling with the JDK Calendar for a bit now, and by changing to
joda-time and altering my datat types, I've been able to streamline
large sections of my current application.

I do have a problem with a DateTimeFormatter.

The string I receive from a service is formatted as "3 PM CST 18 MAR
06".  Time zones are relevant, and I do have an offset available as
"-6".  However, according to the documentation I think I should be
able to parse the supplied string as

 DateTimeFormat.forPattern("hh aa zzz dd MMM yy")

Inevitibly, I get a :
java.lang.IllegalArgumentException: Invalid format: "3 PM CST 18 MAR
06" is malformed at "CST 18 MAR 06"

Using a SimpleDateFormat with the same format strings, the date parses
properly (or at least appears to).

Having read a few dozen list postings, I can see that there is an
ongoing question about the rather complex nature of timezones. 
Clearly, the zzz formatting is not working under this circumstance,
but is there a solution to this issue that exists and I simply haven't
been able to locate it yet?  It seems that this should parse, but if I
have to use SimpleDateFormat I will.

Thanks again for a great product!


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to