Public Member Functions | Static Public Member Functions | Static Public Attributes

alma.acs.util.IsoDateFormat Class Reference

Inherits java::text::SimpleDateFormat.

List of all members.

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"

Detailed Description

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.

Author:
hsommer

Constructor & Destructor Documentation

alma.acs.util.IsoDateFormat.IsoDateFormat (  ) 

Member Function Documentation

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.

See also:
DateFormat.format(Date)

Referenced by alma.acs.util.IsoDateFormat.formatCurrentDate().

static Date alma.acs.util.IsoDateFormat.parseIsoTimestamp ( String  isoTimestamp  )  throws ParseException [static]

Member Data Documentation

final String alma.acs.util.IsoDateFormat.pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties