Inherits java::text::SimpleDateFormat.
Public Member Functions | |
IsoDateFormat () | |
Static Public Member Functions | |
static String | formatDate (Date date) |
static String | formatCurrentDate () |
static Date | parseIsoTimestamp (String isoTimestamp) throws ParseException |
Static Public Attributes | |
static final String | pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS" |
ISO 8601 date format.
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.
alma.acs.util.IsoDateFormat.IsoDateFormat | ( | ) |
References alma.acs.util.IsoDateFormat.pattern.
static String alma.acs.util.IsoDateFormat.formatCurrentDate | ( | ) | [static] |
Convenience method that works with a shared instance of this class.
References alma.acs.util.IsoDateFormat.formatDate().
static String alma.acs.util.IsoDateFormat.formatDate | ( | Date | date | ) | [static] |
Convenience method that works with a shared instance of this class.
Referenced by alma.acs.util.IsoDateFormat.formatCurrentDate().
static Date alma.acs.util.IsoDateFormat.parseIsoTimestamp | ( | String | isoTimestamp | ) | throws ParseException [static] |
final String alma.acs.util.IsoDateFormat.pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS" [static] |
Referenced by alma.acs.util.IsoDateFormat.IsoDateFormat().