Searched refs:YEAR (Results 1 - 25 of 34) sorted by relevance

12

/openjdk7/jdk/test/sun/util/calendar/
H A DBug6653944.java27 *@summary Deserialization tests for YEAR calculcations
38 int expectedYear = buddhist.get(Calendar.YEAR);
43 int deserializedYear = deserialized.get(Calendar.YEAR);
46 // test add(YEAR, n).
47 buddhist.add(Calendar.YEAR, 12);
48 expectedYear = buddhist.get(Calendar.YEAR);
49 deserialized.add(Calendar.YEAR, 12);
50 deserializedYear = deserialized.get(Calendar.YEAR);
/openjdk7/jdk/test/java/util/Calendar/
H A DBug6645263.java35 cal.set(Calendar.YEAR, 2007);
H A DWeekDateTest.java89 if (cal.get(YEAR) != expected[0]
93 cal.get(YEAR), cal.get(MONTH)+1, cal.get(DAY_OF_MONTH),
147 if (cal.get(YEAR) != expected[0]
151 cal.get(YEAR), cal.get(MONTH)+1, cal.get(DAY_OF_MONTH),
/openjdk7/jdk/src/share/classes/java/text/
H A DCalendarBuilder.java82 field[MAX_FIELD + YEAR] += value;
105 && field[WEEK_YEAR] > field[YEAR];
107 // Use YEAR instead
108 if (!isSet(YEAR)) {
109 set(YEAR, field[MAX_FIELD + WEEK_YEAR]);
H A DDateFormat.java171 * Useful constant for YEAR field alignment.
899 public final static Field YEAR = new Field("year", Calendar.YEAR); field in class:DateFormat.Field
/openjdk7/jdk/src/share/classes/sun/util/
H A DBuddhistCalendar.java118 if (field == YEAR) {
131 if (field == YEAR) {
269 // If the YEAR field is UNSET, then return the Gregorian string.
270 if (!isSet(YEAR)) {
274 final String yearField = "YEAR=";
286 int year = internalGet(YEAR) + BUDDHIST_YEAR_OFFSET;
/openjdk7/jdk/test/sun/security/tools/keytool/
H A DStartDateTest.java45 int year = cal.get(Calendar.YEAR);
54 if (cal.get(Calendar.YEAR) != year + 1) {
/openjdk7/jdk/src/share/classes/java/util/
H A DJapaneseImperialCalendar.java142 * YEAR -292275055 1 ? ?
163 -292275055, // YEAR
182 0, // YEAR (initialized later)
201 292278994, // YEAR
267 LEAST_MAX_VALUES[YEAR] = year; // Max year could be smaller than this value.
371 if (field == YEAR) {
376 set(YEAR, d.getYear());
384 set(YEAR, d.getYear());
556 d.setDate(internalGet(YEAR),
582 case YEAR
[all...]
H A DGregorianCalendar.java181 * <code>YEAR<br></code>
275 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
300 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
417 * YEAR 1 1 292269054 292278994
438 1, // YEAR
457 292269054, // YEAR
476 292278994, // YEAR
628 * @param year the value used to set the <code>YEAR</cod
[all...]
H A DCalendar.java63 * #fields calendar fields} such as <code>YEAR</code>, <code>MONTH</code>,
163 * YEAR + MONTH + DAY_OF_MONTH
164 * YEAR + MONTH + WEEK_OF_MONTH + DAY_OF_WEEK
165 * YEAR + MONTH + DAY_OF_WEEK_IN_MONTH + DAY_OF_WEEK
166 * YEAR + DAY_OF_YEAR
167 * YEAR + DAY_OF_WEEK + WEEK_OF_YEAR
181 * of the start of the Epoch: i.e., <code>YEAR = 1970</code>, <code>MONTH =
331 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.)
353 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.)
376 public final static int YEAR field in class:Calendar
[all...]
/openjdk7/jdk/test/java/text/Format/DateFormat/
H A DWeekDateTest.java147 if (gcal.get(YEAR) != 2008
151 gcal.get(YEAR),
/openjdk7/jdk/test/java/util/TimeZone/
H A DDaylightTimeTest.java84 cal.add(YEAR, 50);
/openjdk7/jdk/test/sun/security/tools/jarsigner/
H A Dconcise_jarsigner.sh62 YEAR=`date +%Y`
99 LINES=`$JARSIGNER -verify a.jar -verbose | grep $YEAR | wc -l`
103 LINES=`$JARSIGNER -verify a.jar -verbose:grouped | grep $YEAR | wc -l`
107 LINES=`$JARSIGNER -verify a.jar -verbose:summary | grep $YEAR | wc -l`
115 LINES=`$JARSIGNER -verify a.jar -verbose:summary -certs | grep $YEAR | wc -l`
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/xs/
H A DDayDV.java69 date.year=YEAR;
H A DMonthDV.java69 date.year=YEAR;
H A DTimeDV.java70 date.year=YEAR;
H A DBaseDVFactory.java157 final String YEAR = "gYear";
176 types.put(YEAR, new XSSimpleTypeDecl(anySimpleType, YEAR, XSSimpleTypeDecl.DV_GYEAR, XSSimpleType.ORDERED_PARTIAL, false, false, false, true, XSConstants.GYEAR_DT));
H A DMonthDayDV.java72 date.year=YEAR;
H A DBaseSchemaDVFactory.java95 final String YEAR = "gYear";
118 builtInTypes.put(YEAR, new XSSimpleTypeDecl(baseAtomicType, YEAR, XSSimpleTypeDecl.DV_GYEAR, XSSimpleType.ORDERED_PARTIAL, false, false, false, true, XSConstants.GYEAR_DT));
/openjdk7/jdk/src/share/classes/javax/swing/
H A DSpinnerDateModel.java55 * <li><code>Calendar.YEAR</code>
99 case Calendar.YEAR:
147 * <li><code>Calendar.YEAR</code>
320 * <li><code>Calendar.YEAR</code>
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltDatetime.java255 double yr = getNumber(datetime, formats, Calendar.YEAR);
268 return cal.get(Calendar.YEAR);
608 double dbl = getNumber(datetime, formats, Calendar.YEAR);
621 int yr = (int)cal.get(Calendar.YEAR);
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/datatype/
H A DXMLGregorianCalendarImpl.java258 private static final int YEAR = 0; field in class:XMLGregorianCalendarImpl
297 * field names indexed by YEAR..TIMEZONE.
606 * <th><code>ERA == GregorianCalendar.BC ? -YEAR : YEAR</code></th>
645 int year = cal.get(Calendar.YEAR);
2070 fieldUndefined[YEAR] = true;
2229 for (int i = YEAR; i <= SECOND; i++) {
2232 case YEAR:
2333 * <th><code>YEAR</code></th>
2384 * <li>Its fields ERA, YEAR, MONT
[all...]
H A DDurationImpl.java397 int2long = gregorianCalendar.get(Calendar.YEAR) - 1970;
869 lhsCalendar.add(GregorianCalendar.YEAR, getYears() * getSign());
884 rhsCalendar.add(GregorianCalendar.YEAR, rhs.getYears() * rhs.getSign());
1445 c.add(Calendar.YEAR, getYears() * signum);
1923 calendar.add(Calendar.YEAR, getYears() * signum);
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/
H A DKerberosTime.java172 return zeroPad(Integer.toString(calendar.get(Calendar.YEAR)), 4) +
/openjdk7/jdk/src/share/classes/java/net/
H A DHttpCookie.java1146 int year = cal.get(Calendar.YEAR);
1153 cal.set(Calendar.YEAR, year);

Completed in 4080 milliseconds

12