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

public final Class JulianCalendar

extends BaseCalendar
Class Inheritance
Imports
java.util.TimeZone

Julian calendar implementation.
Author
Masayoshi Okutsu
Since
1.5

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final Era[]
private static final int
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 JulianCalendar.Date
public JulianCalendar.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 JulianCalendar.Date
public JulianCalendar.Date
public void
getCalendarDateFromFixedDate(CalendarDate date, long fixedDate)

Overrides sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate.

Calculates calendar fields and store them in the specified CalendarDate.

public int
getDayOfWeek(CalendarDate date)

Overrides sun.util.calendar.BaseCalendar.getDayOfWeek.

Returns the day of week of the given Gregorian date.

public long
getFixedDate(int
normalized Julian year
jyear
,
int month, int dayOfMonth, BaseCalendar.Date cache)

Overrides sun.util.calendar.BaseCalendar.getFixedDate.

public String
getName()

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

Returns the name of this calendar system.

public int
getYearFromFixedDate(long fixedDate)

Overrides sun.util.calendar.BaseCalendar.getYearFromFixedDate.

Returns the normalized Julian year number of the given fixed date.

pack-priv boolean
public JulianCalendar.Date
newCalendarDate()

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

Constructs a CalendarDate that is specific to this calendar system.

public JulianCalendar.Date
Inherited from sun.util.calendar.BaseCalendar:
getDayOfWeekFromFixedDategetDayOfYeargetDayOfYeargetFixedDategetGregorianYearFromFixedDategetMonthLengthgetYearLengthisLeapYearnormalizenormalizeMonthvalidate

Field Detail

BCEback to summary
private static final int BCE
CEback to summary
private static final int CE
erasback to summary
private static final Era[] eras

Hides sun.util.calendar.AbstractCalendar.eras.

JULIAN_EPOCHback to summary
private static final int JULIAN_EPOCH

Constructor Detail

JulianCalendarback to summary
pack-priv JulianCalendar()

Method Detail

getCalendarDateback to summary
public JulianCalendar.Date getCalendarDate()

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Annotations
@Override
getCalendarDateback to summary
public JulianCalendar.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 JulianCalendar.Date getCalendarDate(long millis, CalendarDate date)

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

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

Overrides sun.util.calendar.AbstractCalendar.getCalendarDate.

Annotations
@Override
getCalendarDateFromFixedDateback to summary
public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate)

Overrides sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate.

Doc from sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate.

Calculates calendar fields and store them in the specified CalendarDate.

Annotations
@Override
getDayOfWeekback to summary
public int getDayOfWeek(CalendarDate date)

Overrides sun.util.calendar.BaseCalendar.getDayOfWeek.

Doc from sun.util.calendar.BaseCalendar.getDayOfWeek.

Returns the day of week of the given Gregorian date.

Annotations
@Override
getFixedDateback to summary
public long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache)

Overrides sun.util.calendar.BaseCalendar.getFixedDate.

Parameters
jyear:int

normalized Julian year

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
getYearFromFixedDateback to summary
public int getYearFromFixedDate(long fixedDate)

Overrides sun.util.calendar.BaseCalendar.getYearFromFixedDate.

Returns the normalized Julian year number of the given fixed date.

Annotations
@Override
isLeapYearback to summary
pack-priv boolean isLeapYear(int jyear)

Overrides sun.util.calendar.BaseCalendar.isLeapYear.

Annotations
@Override
newCalendarDateback to summary
public JulianCalendar.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 JulianCalendar.Date newCalendarDate(TimeZone zone)

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

Annotations
@Override
sun.util.calendar back to summary

pack-priv final Class JulianCalendar.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 JulianCalendar.Date
setEra(Era era)

Overrides sun.util.calendar.CalendarDate.setEra.

Sets the era of the date to the specified era.

pack-priv void
public void
public String
toString()

Overrides sun.util.calendar.CalendarDate.toString.

Converts calendar date values to a String in the following format.

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
setEraback to summary
public JulianCalendar.Date setEra(Era era)

Overrides sun.util.calendar.CalendarDate.setEra.

Doc from sun.util.calendar.CalendarDate.setEra.

Sets the era of the date to the specified era. The default implementation of this method accepts any Era value, including null.

Annotations
@Override
setKnownEraback to summary
pack-priv void setKnownEra(Era era)
setNormalizedYearback to summary
public void setNormalizedYear(int year)

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.util.calendar.CalendarDate.toString.

Doc from sun.util.calendar.CalendarDate.toString.

Converts calendar date values to a String in the following format.

    yyyy-MM-dd'T'HH:mm:ss.SSSz
Annotations
@Override