|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
net.fortuna.ical4j.model.Iso8601
net.fortuna.ical4j.model.Date
net.fortuna.ical4j.model.DateTime
Represents a time of day on a specific date.
Constructor Summary | |
DateTime()
Default constructor. |
|
DateTime(boolean utc)
|
|
DateTime(Date date)
|
|
DateTime(long time)
|
|
DateTime(String value)
Constructs a new DateTime instance from parsing the specified string representation in the default (local) timezone. |
|
DateTime(String value,
TimeZone timezone)
|
Method Summary | |
boolean |
equals(Object arg0)
|
TimeZone |
getTimeZone()
Returns the current timezone associated with this date-time value. |
int |
hashCode()
|
boolean |
isUtc()
|
void |
setTime(long time)
|
void |
setTimeZone(TimeZone timezone)
Sets the timezone associated with this date-time instance. |
void |
setUtc(boolean utc)
Updates this date-time to display in UTC time if the argument is true. |
String |
toString()
|
Methods inherited from class net.fortuna.ical4j.model.Iso8601 |
getFormat |
Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DateTime()
public DateTime(boolean utc)
utc
- public DateTime(long time)
time
- public DateTime(Date date)
date
- public DateTime(String value) throws ParseException
value
- public DateTime(String value, TimeZone timezone) throws ParseException
value
-
ParseException
Method Detail |
public final void setTime(long time)
setTime
in class Iso8601
public final boolean isUtc()
public final void setUtc(boolean utc)
utc
- The utc to set.public final void setTimeZone(TimeZone timezone)
timezone
- public final TimeZone getTimeZone()
public final String toString()
toString
in class Iso8601
public boolean equals(Object arg0)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |