java version of python-dateutil
Posted
by
elhefe
on Stack Overflow
See other posts from Stack Overflow
or by elhefe
Published on 2013-10-18T16:27:40Z
Indexed on
2013/10/21
21:54 UTC
Read the original article
Hit count: 301
Python has a very handy package that can parse nearly any unambiguous date and provides helpful error messages on a parse failure, python-dateutil. Comparison to the SimpleDateFormat class is not favorable - AFAICT SimpleDateFormat can only handle one exact date format and the error messages have no granularity.
I've looked through the Joda API but it appears Joda is the same way - only one explicit format can be parsed at a time.
Is there any package or library that reproduces the python-dateutil behavior? Or am I missing something WRT Joda/SimpleDateFormat?
© Stack Overflow or respective owner