I'm wondering if Java's SimpleDateFormat
can be salvaged to parse the timezones UCT and UT? E.g.
SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy H:m:s Z");
String date1 = "Wed, 10 Oct 2012 11:21:22 UT"; //fails to parse
String date2 = "Wed, 10 Oct 2012 11:21:22 UTC"; //succeeds
String date3 = "Wed, 10 Oct 2012 11:21:22 EDT"; //succeeds
Possible to get SimpleDateFormat
to pick this up? Or will it be necessary to pre-sanitized with regex, or is it recommended to derive or expand the date parser class, or is there another library one with similar enough interface that works in more cases.