|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Calendar java.util.GregorianCalendar de.bea.domingo.util.GregorianTimeZone
public final class GregorianTimeZone
A time-only Gregorian calendar.
Field Summary |
---|
Fields inherited from class java.util.GregorianCalendar |
---|
AD, BC |
Fields inherited from class java.util.Calendar |
---|
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET |
Constructor Summary | |
---|---|
GregorianTimeZone()
Default Constructor. |
|
GregorianTimeZone(java.util.Calendar calendar)
Creates a new Gregorian date from a given java.util.Calendar . |
|
GregorianTimeZone(java.util.Date date)
Creates a new Gregorian date from a given java.util.Date . |
|
GregorianTimeZone(java.util.TimeZone timezone)
Creates a new Gregorian time zone from a given time zone. |
Method Summary | |
---|---|
protected void |
computeFields()
Overwrites GregorianCalendar.computeFields(), to disable all date and time fields. |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
void |
set(int field,
int value)
Overwrite prevents setting date and time fields. |
java.lang.String |
toString()
Formats a date as a string in a locale-independent format. |
Methods inherited from class java.util.GregorianCalendar |
---|
add, clone, computeTime, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, isLeapYear, roll, roll, setGregorianChange, setTimeZone |
Methods inherited from class java.util.Calendar |
---|
after, before, clear, clear, compareTo, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GregorianTimeZone()
public GregorianTimeZone(java.util.Date date)
java.util.Date
.
date
- the date for the new calendarpublic GregorianTimeZone(java.util.Calendar calendar)
java.util.Calendar
.
calendar
- the original calendar for the new calendarpublic GregorianTimeZone(java.util.TimeZone timezone)
timezone
- the time zoneMethod Detail |
---|
public void set(int field, int value)
set
in class java.util.Calendar
field
- the given calendar field.value
- the value to be set for the given calendar field.Calendar.set(int, int)
public java.lang.String toString()
toString
in class java.util.Calendar
YYYY-MM-DD
.Object.toString()
protected void computeFields()
computeFields
in class java.util.GregorianCalendar
Calendar.computeFields()
public boolean equals(java.lang.Object object)
equals
in class java.util.GregorianCalendar
object
- the reference object with which to compare.
true
if this object is the same as the object
argument; false
otherwise.Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.util.GregorianCalendar
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |