|
||||||||||
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
public class 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)
Creates a new date-time instance from the specified value in the given timezone. |
Method Summary | |
---|---|
boolean |
equals(Object arg0)
Uses ObjectUtils to test equality. |
TimeZone |
getTimeZone()
Returns the current timezone associated with this date-time value. |
int |
hashCode()
Uses HashCodeBuilder to build 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, 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
-
ParseException
public DateTime(String value, TimeZone timezone) throws ParseException
TimeZone.getDefault()
) is used.
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)
ObjectUtils
to test equality.
equals
in class Date
public int hashCode()
HashCodeBuilder
to build hashcode.
hashCode
in class Date
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |