public class IsoDateFormat
extends java.text.SimpleDateFormat
http://jira.alma.cl/browse/COMP-1929 made it clear that we use the same format string all over ACS, and that there should be this class to encapsulate it.
No trailing 'Z' is assumed or used to define a reference to UTC time, which means that all timestamps are interpreted as referencing local time. In Alma for example all computers are set to UTC so that local time is always UTC.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
pattern |
AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD| Constructor and Description |
|---|
IsoDateFormat() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatCurrentDate()
Convenience method that works with a shared instance of this class.
|
static java.lang.String |
formatDate(java.util.Date date)
Convenience method that works with a shared instance of this class.
|
static java.util.Date |
parseIsoTimestamp(java.lang.String isoTimestamp) |
applyLocalizedPattern, applyPattern, clone, equals, format, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPatternformat, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZonepublic static final java.lang.String pattern
public static java.lang.String formatDate(java.util.Date date)
DateFormat.format(Date)public static java.lang.String formatCurrentDate()
public static java.util.Date parseIsoTimestamp(java.lang.String isoTimestamp)
throws java.text.ParseException
java.text.ParseException