< prev index next >
src/java.base/share/classes/java/util/spi/CalendarNameProvider.java
Print this page
*** 44,81 ****
*
* <p>Calendar fields are specified with the constants defined in {@link
* Calendar}. The following are calendar-common fields and their values to be
* supported for each calendar system.
*
! * <table class="plain">
* <caption style="display:none">Field values</caption>
* <thead>
* <tr>
! * <th>Field</th>
! * <th>Value</th>
! * <th>Description</th>
* </tr>
* </thead>
* <tbody>
* <tr>
! * <td style="vertical-align:top">{@link Calendar#MONTH}</td>
* <td style="vertical-align:top">{@link Calendar#JANUARY} to {@link Calendar#UNDECIMBER}</td>
* <td>Month numbering is 0-based (e.g., 0 - January, ..., 11 -
* December). Some calendar systems have 13 months. Month
* names need to be supported in both the formatting and
* stand-alone forms if required by the supported locales. If there's
* no distinction in the two forms, the same names should be returned
* in both of the forms.</td>
* </tr>
* <tr>
! * <td style="vertical-align:top">{@link Calendar#DAY_OF_WEEK}</td>
* <td style="vertical-align:top">{@link Calendar#SUNDAY} to {@link Calendar#SATURDAY}</td>
* <td>Day-of-week numbering is 1-based starting from Sunday (i.e., 1 - Sunday,
* ..., 7 - Saturday).</td>
* </tr>
* <tr>
! * <td style="vertical-align:top">{@link Calendar#AM_PM}</td>
* <td style="vertical-align:top">{@link Calendar#AM} to {@link Calendar#PM}</td>
* <td>0 - AM, 1 - PM</td>
* </tr>
* </tbody>
* </table>
--- 44,81 ----
*
* <p>Calendar fields are specified with the constants defined in {@link
* Calendar}. The following are calendar-common fields and their values to be
* supported for each calendar system.
*
! * <table class="striped">
* <caption style="display:none">Field values</caption>
* <thead>
* <tr>
! * <th scope="col">Field</th>
! * <th scope="col">Value</th>
! * <th scope="col">Description</th>
* </tr>
* </thead>
* <tbody>
* <tr>
! * <th scope="row" style="vertical-align:top">{@link Calendar#MONTH}</th>
* <td style="vertical-align:top">{@link Calendar#JANUARY} to {@link Calendar#UNDECIMBER}</td>
* <td>Month numbering is 0-based (e.g., 0 - January, ..., 11 -
* December). Some calendar systems have 13 months. Month
* names need to be supported in both the formatting and
* stand-alone forms if required by the supported locales. If there's
* no distinction in the two forms, the same names should be returned
* in both of the forms.</td>
* </tr>
* <tr>
! * <th scope="row" style="vertical-align:top">{@link Calendar#DAY_OF_WEEK}</th>
* <td style="vertical-align:top">{@link Calendar#SUNDAY} to {@link Calendar#SATURDAY}</td>
* <td>Day-of-week numbering is 1-based starting from Sunday (i.e., 1 - Sunday,
* ..., 7 - Saturday).</td>
* </tr>
* <tr>
! * <th scope="row" style="vertical-align:top">{@link Calendar#AM_PM}</th>
* <td style="vertical-align:top">{@link Calendar#AM} to {@link Calendar#PM}</td>
* <td>0 - AM, 1 - PM</td>
* </tr>
* </tbody>
* </table>
*** 84,168 ****
*
* <table class="plain">
* <caption style="display:none">Calendar type and field values</caption>
* <thead>
* <tr>
! * <th>Calendar Type</th>
! * <th>Field</th>
! * <th>Value</th>
! * <th>Description</th>
* </tr>
* </thead>
* <tbody>
* <tr>
! * <td rowspan="2" style="vertical-align:top">{@code "gregory"}</td>
! * <td rowspan="2" style="vertical-align:top">{@link Calendar#ERA}</td>
! * <td>0</td>
* <td>{@link java.util.GregorianCalendar#BC} (BCE)</td>
* </tr>
* <tr>
! * <td>1</td>
* <td>{@link java.util.GregorianCalendar#AD} (CE)</td>
* </tr>
* <tr>
! * <td rowspan="2" style="vertical-align:top">{@code "buddhist"}</td>
! * <td rowspan="2" style="vertical-align:top">{@link Calendar#ERA}</td>
! * <td>0</td>
* <td>BC (BCE)</td>
* </tr>
* <tr>
! * <td>1</td>
* <td>B.E. (Buddhist Era)</td>
* </tr>
* <tr>
! * <td rowspan="6" style="vertical-align:top">{@code "japanese"}</td>
! * <td rowspan="5" style="vertical-align:top">{@link Calendar#ERA}</td>
! * <td>0</td>
* <td>Seireki (Before Meiji)</td>
* </tr>
* <tr>
! * <td>1</td>
* <td>Meiji</td>
* </tr>
* <tr>
! * <td>2</td>
* <td>Taisho</td>
* </tr>
* <tr>
! * <td>3</td>
* <td>Showa</td>
* </tr>
* <tr>
! * <td>4</td>
* <td >Heisei</td>
* </tr>
* <tr>
! * <td>{@link Calendar#YEAR}</td>
! * <td>1</td>
* <td>the first year in each era. It should be returned when a long
* style ({@link Calendar#LONG_FORMAT} or {@link Calendar#LONG_STANDALONE}) is
* specified. See also the <a href="../../text/SimpleDateFormat.html#year">
* Year representation in {@code SimpleDateFormat}</a>.</td>
* </tr>
* <tr>
! * <td rowspan="2" style="vertical-align:top">{@code "roc"}</td>
! * <td rowspan="2" style="vertical-align:top">{@link Calendar#ERA}</td>
! * <td>0</td>
* <td>Before R.O.C.</td>
* </tr>
* <tr>
! * <td>1</td>
* <td>R.O.C.</td>
* </tr>
* <tr>
! * <td rowspan="2" style="vertical-align:top">{@code "islamic"}</td>
! * <td rowspan="2" style="vertical-align:top">{@link Calendar#ERA}</td>
! * <td>0</td>
* <td>Before AH</td>
* </tr>
* <tr>
! * <td>1</td>
* <td>Anno Hijrah (AH)</td>
* </tr>
* </tbody>
* </table>
*
--- 84,168 ----
*
* <table class="plain">
* <caption style="display:none">Calendar type and field values</caption>
* <thead>
* <tr>
! * <th scope="col">Calendar Type</th>
! * <th scope="col">Field</th>
! * <th scope="col">Value</th>
! * <th scope="col">Description</th>
* </tr>
* </thead>
* <tbody>
* <tr>
! * <th scope="row"rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@code "gregory"}</th>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#ERA}</th>
! * <th scope="row" style="font-weight:normal">0</th>
* <td>{@link java.util.GregorianCalendar#BC} (BCE)</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>{@link java.util.GregorianCalendar#AD} (CE)</td>
* </tr>
* <tr>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@code "buddhist"}</th>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#ERA}</th>
! * <th scope="row" style="font-weight:normal">0</th>
* <td>BC (BCE)</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>B.E. (Buddhist Era)</td>
* </tr>
* <tr>
! * <th scope="row" rowspan="6" style="font-weight:normal; text-align:left; vertical-align:top">{@code "japanese"}</th>
! * <th scope="row" rowspan="5" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#ERA}</th>
! * <th scope="row" style="font-weight:normal">0</th>
* <td>Seireki (Before Meiji)</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>Meiji</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">2</th>
* <td>Taisho</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">3</th>
* <td>Showa</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">4</th>
* <td >Heisei</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#YEAR}</th>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>the first year in each era. It should be returned when a long
* style ({@link Calendar#LONG_FORMAT} or {@link Calendar#LONG_STANDALONE}) is
* specified. See also the <a href="../../text/SimpleDateFormat.html#year">
* Year representation in {@code SimpleDateFormat}</a>.</td>
* </tr>
* <tr>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@code "roc"}</th>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#ERA}</th>
! * <th scope="row" style="font-weight:normal">0</th>
* <td>Before R.O.C.</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>R.O.C.</td>
* </tr>
* <tr>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@code "islamic"}</th>
! * <th scope="row" rowspan="2" style="font-weight:normal; text-align:left; vertical-align:top">{@link Calendar#ERA}</th>
! * <th scope="row" style="font-weight:normal">0</th>
* <td>Before AH</td>
* </tr>
* <tr>
! * <th scope="row" style="font-weight:normal">1</th>
* <td>Anno Hijrah (AH)</td>
* </tr>
* </tbody>
* </table>
*
< prev index next >