net.fortuna.ical4j.model
Class Iso8601
java.lang.Object
java.util.Date
net.fortuna.ical4j.model.Iso8601
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>
- Direct Known Subclasses:
- Date, Time
public abstract class Iso8601
- extends java.util.Date
$Id: Iso8601.java,v 1.22 2011/02/20 03:12:32 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.
- Author:
- Ben Fortuna
- See Also:
- Serialized Form
Constructor Summary |
Iso8601(java.util.Date time,
java.lang.String pattern,
int precision,
java.util.TimeZone tz)
|
Iso8601(long time,
java.lang.String pattern,
int precision,
java.util.TimeZone tz)
|
Iso8601(java.lang.String pattern,
int precision,
java.util.TimeZone tz)
|
Methods inherited from class java.util.Date |
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Iso8601
public Iso8601(long time,
java.lang.String pattern,
int precision,
java.util.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(java.lang.String pattern,
int precision,
java.util.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(java.util.Date time,
java.lang.String pattern,
int precision,
java.util.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
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.util.Date
getFormat
protected final java.text.DateFormat getFormat()
- Returns:
- Returns the format.
setTime
public void setTime(long time)
-
- Overrides:
setTime
in class java.util.Date
Copyright © 2004-2011 Modularity. All Rights Reserved.