Package net.fortuna.ical4j.model
Class Iso8601
- java.lang.Object
-
- java.util.Date
-
- net.fortuna.ical4j.model.Iso8601
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Date>
public abstract class Iso8601 extends Date
$Id$ 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 thatObject.equals()
is overridden to ensure equality checking is consistent with the type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DateFormat
getFormat()
void
setTime(long time)
String
toString()
-
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toInstant, toLocaleString, UTC
-
-
-
-
Constructor Detail
-
Iso8601
public Iso8601(long time, String pattern, int precision, TimeZone tz)
- Parameters:
time
- a time value in millisecondspattern
- the formatting pattern to applyprecision
- the precision to applytz
- the timezone for the instance- See Also:
Dates.PRECISION_DAY
,Dates.PRECISION_SECOND
-
Iso8601
public Iso8601(String pattern, int precision, TimeZone tz)
- Parameters:
pattern
- the formatting pattern to applyprecision
- the precision to applytz
- the timezone for the instance- See Also:
Dates.PRECISION_DAY
,Dates.PRECISION_SECOND
-
Iso8601
public Iso8601(Date time, String pattern, int precision, TimeZone tz)
- Parameters:
time
- a time value as a datepattern
- the formatting pattern to applyprecision
- the precision to applytz
- the timezone for the instance- See Also:
Dates.PRECISION_DAY
,Dates.PRECISION_SECOND
-
-