public class

JulianCalendar

extends BaseCalendar
java.lang.Object
   ↳ sun.util.calendar.CalendarSystem
     ↳ sun.util.calendar.AbstractCalendar
       ↳ sun.util.calendar.BaseCalendar
         ↳ sun.util.calendar.JulianCalendar

Class Overview

Julian calendar implementation.

Summary

[Expand]
Inherited Constants
From class sun.util.calendar.BaseCalendar
Public Methods
JulianCalendar.Date getCalendarDate(long millis, TimeZone zone)
JulianCalendar.Date getCalendarDate(long millis)
Calculates calendar fields from the specified number of milliseconds since the Epoch, January 1, 1970 00:00:00 UTC (Gregorian).
JulianCalendar.Date getCalendarDate()
JulianCalendar.Date getCalendarDate(long millis, CalendarDate date)
void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate)
Calculates calendar fields and store them in the specified CalendarDate.
int getDayOfWeek(CalendarDate date)
Returns the day of week of the given Gregorian date.
long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache)
String getName()
Returns the name of this calendar system.
int getYearFromFixedDate(long fixedDate)
Returns the normalized Julian year number of the given fixed date.
JulianCalendar.Date newCalendarDate(TimeZone zone)
JulianCalendar.Date newCalendarDate()
Constructs a CalendarDate that is specific to this calendar system.
[Expand]
Inherited Methods
From class sun.util.calendar.BaseCalendar
From class sun.util.calendar.AbstractCalendar
From class sun.util.calendar.CalendarSystem
From class java.lang.Object

Public Methods

public JulianCalendar.Date getCalendarDate (long millis, TimeZone zone)

public JulianCalendar.Date getCalendarDate (long millis)

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).

Parameters
millis the offset value in milliseconds from January 1, 1970 00:00:00 UTC (Gregorian).
Returns
  • a CalendarDate instance that contains the calculated calendar field values.

public JulianCalendar.Date getCalendarDate ()

public JulianCalendar.Date getCalendarDate (long millis, CalendarDate date)

public void getCalendarDateFromFixedDate (CalendarDate date, long fixedDate)

Calculates calendar fields and store them in the specified CalendarDate.

Parameters
date a CalendarDate to stored the calculated calendar fields.
fixedDate a fixed date to calculate calendar fields

public int getDayOfWeek (CalendarDate date)

Returns the day of week of the given Gregorian date.

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

Parameters
jyear normalized Julian year

public String getName ()

Returns the name of this calendar system.

public int getYearFromFixedDate (long fixedDate)

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

public JulianCalendar.Date newCalendarDate (TimeZone zone)

public JulianCalendar.Date 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.

Returns
  • a CalendarDate instance that contains the initial calendar field values.