public class

Gregorian

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

Class Overview

Gregorian calendar implementation.

Summary

[Expand]
Inherited Constants
From class sun.util.calendar.BaseCalendar
Public Methods
Gregorian.Date getCalendarDate(long millis, TimeZone zone)
Gregorian.Date getCalendarDate(long millis)
Calculates calendar fields from the specified number of milliseconds since the Epoch, January 1, 1970 00:00:00 UTC (Gregorian).
Gregorian.Date getCalendarDate()
Gregorian.Date getCalendarDate(long millis, CalendarDate date)
String getName()
Returns the name of this calendar system.
Gregorian.Date newCalendarDate(TimeZone zone)
Gregorian.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 Gregorian.Date getCalendarDate (long millis, TimeZone zone)

public Gregorian.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 Gregorian.Date getCalendarDate ()

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

public String getName ()

Returns the name of this calendar system.

public Gregorian.Date newCalendarDate (TimeZone zone)

public Gregorian.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.