net.fortuna.ical4j.model

Class Iso8601


public abstract class Iso8601
extends Date

$Id: Iso8601.java,v 1.14 2008/12/29 06:49:13 fortuna Exp $ Created on 30/06/2005 Base class for date and time representations as defined by the ISO 8601 standard. Sub-classes must ensure that either the correct precision is used in constructor arguments, or that Object.equals() is overridden to ensure equality checking is consistent with the type.

Constructor Summary

Iso8601(Date time, String pattern, int precision)
Iso8601(String pattern, int precision)
Iso8601(long time, String pattern, int precision)

Method Summary

protected DateFormat
getFormat()
void
setTime(long time)
String
toString()

Constructor Details

Iso8601

public Iso8601(Date time,
               String pattern,
               int precision)
Parameters:
time -
pattern -

Iso8601

public Iso8601(String pattern,
               int precision)
Parameters:
pattern -

Iso8601

public Iso8601(long time,
               String pattern,
               int precision)
Parameters:
time -
pattern -

Method Details

getFormat

protected final DateFormat getFormat()
Returns:
Returns the format.

setTime

public void setTime(long time)

toString

public String toString()