This is (and will not be) a Java date parsing library and will likely still have limited support for various strings as it’s main use case it to parse from PDF date strings.
| Modifier and Type | Field and Description |
|---|---|
| private static final SimpleDateFormat[] |
| Access | Constructor and Description |
|---|---|
| private | DateConverter()
According to check-style, Utility classes should not have a public or default constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static Calendar | Returns: the Calendar instance.Get a Calendar from an ISO8601 date string. |
| public static Calendar | Returns: The calendar that this string represents.The string representation of the calendar. date)This will convert a string to a calendar. |
| public static String | |
| public static String | |
| private static void |
| POTENTIAL_FORMATS | back to summary |
|---|---|
| private static final SimpleDateFormat[] POTENTIAL_FORMATS | |
| DateConverter | back to summary |
|---|---|
| private DateConverter() According to check-style, Utility classes should not have a public or default constructor. | |
| fromISO8601 | back to summary |
|---|---|
| private static Calendar fromISO8601(String dateString) Get a Calendar from an ISO8601 date string.
| |
| toCalendar | back to summary |
|---|---|
| public static Calendar toCalendar(String date) throws IOException This will convert a string to a calendar.
| |
| toISO8601 | back to summary |
|---|---|
| public static String toISO8601(Calendar cal) Convert the date to iso 8601 string format. | |
| toISO8601 | back to summary |
|---|---|
| public static String toISO8601(Calendar cal, boolean printMillis) Convert the date to iso 8601 string format. | |
| updateZoneId | back to summary |
|---|---|
| private static void updateZoneId(TimeZone tz) Update the zone ID based on the raw offset. This is either GMT, GMT+hh:mm or GMT-hh:mm, where n is between 1 and 14. The highest negative hour is -14, the highest positive hour is 12. Zones that don't fit in this schema are set to zone ID "unknown".
| |