APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.util.calendar

public final Class Gregorian

extends BaseCalendar
Class Inheritance
Imports
java.util.TimeZone

Gregorian calendar implementation.
Author
Masayoshi Okutsu
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Inherited from sun.util.calendar.BaseCalendar:
ACCUMULATED_DAYS_IN_MONTHACCUMULATED_DAYS_IN_MONTH_LEAPAPRILAUGUSTDAYS_IN_MONTHDECEMBERFEBRUARYFRIDAYJANUARYJULYJUNEMARCHMAYMONDAYNOVEMBEROCTOBERSATURDAYSEPTEMBERSUNDAYTHURSDAYTUESDAYWEDNESDAY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Gregorian.Date
public Gregorian.Date
getCalendarDate(long millis)

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Calculates calendar fields from the specified number of milliseconds since the Epoch, January 1, 1970 00:00:00 UTC (Gregorian).

public Gregorian.Date
public Gregorian.Date
public String
getName()

Implements abstract sun.util.calendar.CalendarSystem.getName.

Returns the name of this calendar system.

public Gregorian.Date
newCalendarDate()

Implements abstract sun.util.calendar.CalendarSystem.newCalendarDate.

Constructs a CalendarDate that is specific to this calendar system.

public Gregorian.Date
Inherited from sun.util.calendar.BaseCalendar:
getCalendarDateFromFixedDategetDayOfWeekgetDayOfWeekFromFixedDategetDayOfYeargetDayOfYeargetFixedDategetFixedDategetGregorianYearFromFixedDategetMonthLengthgetYearFromFixedDategetYearLengthisLeapYearisLeapYearnormalizenormalizeMonthvalidate

Constructor Detail

Gregorianback to summary
pack-priv Gregorian()

Method Detail

getCalendarDateback to summary
public Gregorian.Date getCalendarDate()

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Annotations
@Override
getCalendarDateback to summary
public Gregorian.Date getCalendarDate(long millis)

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Doc from sun.util.calendar.CalendarSystem.getCalendarDate.

Calculates calendar fields from the specified number of milliseconds since the Epoch, January 1, 1970 00:00:00 UTC (Gregorian). This method doesn't check overflow or underflow when adjusting the millisecond value (representing UTC) with the time zone offsets (i.e., the GMT offset and amount of daylight saving).

Annotations
@Override
getCalendarDateback to summary
public Gregorian.Date getCalendarDate(long millis, CalendarDate date)

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Annotations
@Override
getCalendarDateback to summary
public Gregorian.Date getCalendarDate(long millis, TimeZone zone)

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract sun.util.calendar.CalendarSystem.getName.

Doc from sun.util.calendar.CalendarSystem.getName.

Returns the name of this calendar system.

Annotations
@Override
newCalendarDateback to summary
public Gregorian.Date newCalendarDate()

Implements abstract sun.util.calendar.CalendarSystem.newCalendarDate.

Doc from sun.util.calendar.CalendarSystem.newCalendarDate.

Constructs a CalendarDate that is specific to this calendar system. All calendar fields have their initial values. The default time zone is set to the instance.

Annotations
@Override
newCalendarDateback to summary
public Gregorian.Date newCalendarDate(TimeZone zone)

Implements abstract sun.util.calendar.CalendarSystem.newCalendarDate.

Annotations
@Override
sun.util.calendar back to summary

pack-priv final Class Gregorian.Date

extends Date
Class Inheritance

Field Summary

Inherited from sun.util.calendar.BaseCalendar.Date:
cachedFixedDateJan1cachedFixedDateNextJan1cachedYear

Constructor Summary

AccessConstructor and Description
pack-priv
Date()

pack-priv
Date(TimeZone zone)

Method Summary

Modifier and TypeMethod and Description
public int
public void
Inherited from sun.util.calendar.BaseCalendar.Date:
getCachedJan1getCachedYearhithitsetCachesetNormalizedDate

Constructor Detail

Dateback to summary
pack-priv Date()
Dateback to summary
pack-priv Date(TimeZone zone)

Method Detail

getNormalizedYearback to summary
public int getNormalizedYear()

Implements abstract sun.util.calendar.BaseCalendar.Date.getNormalizedYear.

Annotations
@Override
setNormalizedYearback to summary
public void setNormalizedYear(int normalizedYear)

Implements abstract sun.util.calendar.BaseCalendar.Date.setNormalizedYear.

Annotations
@Override